@ibm-cloud/cloudant 0.10.0 → 0.10.2
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 +76 -11
- package/auth/sessionTokenManager.d.ts +1 -1
- package/cloudant/features/changesFollower.d.ts +1 -2
- package/cloudant/features/changesFollower.js +2 -2
- package/cloudant/features/changesFollower.js.map +1 -1
- package/cloudant/features/changesResultItemStream.d.ts +2 -2
- package/cloudant/features/changesResultIterator.d.ts +1 -2
- package/cloudant/features/changesResultIterator.js +2 -2
- package/cloudant/features/changesResultIterator.js.map +1 -1
- package/cloudant/features/stream.d.ts +1 -1
- package/cloudant/features/stream.js +2 -2
- package/cloudant/features/stream.js.map +1 -1
- package/cloudant/v1.d.ts +679 -210
- package/cloudant/v1.js +544 -181
- package/cloudant/v1.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/lib/cloudantBaseService.js +4 -4
- package/lib/cloudantBaseService.js.map +1 -1
- package/lib/common.js +6 -30
- package/lib/common.js.map +1 -1
- package/package.json +21 -17
package/cloudant/v1.js
CHANGED
|
@@ -120,39 +120,6 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
120
120
|
};
|
|
121
121
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ServerInformation.deserialize);
|
|
122
122
|
}
|
|
123
|
-
/**
|
|
124
|
-
* Retrieve cluster membership information.
|
|
125
|
-
*
|
|
126
|
-
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
127
|
-
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
128
|
-
* cluster.
|
|
129
|
-
*
|
|
130
|
-
* @param {Object} [params] - The parameters to send to the service.
|
|
131
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
132
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
133
|
-
*/
|
|
134
|
-
getMembershipInformation(params) {
|
|
135
|
-
const _params = { ...params };
|
|
136
|
-
const _requiredParams = [];
|
|
137
|
-
const _validParams = ['headers'];
|
|
138
|
-
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
139
|
-
if (_validationErrors) {
|
|
140
|
-
return Promise.reject(_validationErrors);
|
|
141
|
-
}
|
|
142
|
-
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getMembershipInformation');
|
|
143
|
-
const parameters = {
|
|
144
|
-
options: {
|
|
145
|
-
url: '/_membership',
|
|
146
|
-
method: 'GET',
|
|
147
|
-
},
|
|
148
|
-
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
149
|
-
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
150
|
-
'Accept': 'application/json',
|
|
151
|
-
}, _params.headers),
|
|
152
|
-
}),
|
|
153
|
-
};
|
|
154
|
-
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.MembershipInformation.deserialize);
|
|
155
|
-
}
|
|
156
123
|
/**
|
|
157
124
|
* Retrieve one or more UUIDs.
|
|
158
125
|
*
|
|
@@ -232,7 +199,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
232
199
|
*
|
|
233
200
|
* @param {Object} params - The parameters to send to the service.
|
|
234
201
|
* @param {number} params.blocks - A number of blocks of throughput units. A block consists of 100 reads/sec, 50
|
|
235
|
-
* writes/sec, and 5 global queries/sec of provisioned throughput capacity.
|
|
202
|
+
* writes/sec, and 5 global queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
236
203
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
237
204
|
* @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
|
|
238
205
|
*/
|
|
@@ -376,13 +343,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
376
343
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
377
344
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
378
345
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
379
|
-
* argument.
|
|
380
|
-
*
|
|
346
|
+
* argument.
|
|
347
|
+
*
|
|
348
|
+
* It is important for query performance to use appropriate selectors:
|
|
381
349
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
382
350
|
* of a query. You should include at least one of these in a selector.
|
|
351
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
352
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
353
|
+
* of documents that will need to be scanned.
|
|
383
354
|
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
355
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
356
|
+
* combination and conditional operators.
|
|
357
|
+
*
|
|
358
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
386
359
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
387
360
|
* on a previous connection. Overrides `since` query parameter.
|
|
388
361
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -540,13 +513,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
540
513
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
541
514
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
542
515
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
543
|
-
* argument.
|
|
544
|
-
*
|
|
516
|
+
* argument.
|
|
517
|
+
*
|
|
518
|
+
* It is important for query performance to use appropriate selectors:
|
|
545
519
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
546
520
|
* of a query. You should include at least one of these in a selector.
|
|
521
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
522
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
523
|
+
* of documents that will need to be scanned.
|
|
547
524
|
*
|
|
548
|
-
*
|
|
549
|
-
*
|
|
525
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
526
|
+
* combination and conditional operators.
|
|
527
|
+
*
|
|
528
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
550
529
|
* @param {string} [params.lastEventId] - Header parameter to specify the ID of the last events received by the server
|
|
551
530
|
* on a previous connection. Overrides `since` query parameter.
|
|
552
531
|
* @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
|
|
@@ -873,6 +852,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
873
852
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
874
853
|
* @param {boolean} [params.partitioned] - Query parameter to specify whether to enable database partitions when
|
|
875
854
|
* creating a database.
|
|
855
|
+
*
|
|
856
|
+
* Before using read the
|
|
857
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)
|
|
858
|
+
* to understand the limitations and appropriate use cases.
|
|
876
859
|
* @param {number} [params.q] - The number of shards in the database. Each shard is a partition of the hash value
|
|
877
860
|
* range. Cloudant recommends using the default value for most databases. However, if your database is expected to be
|
|
878
861
|
* larger than 250 GB or have a lot of indexes, you may need to adjust the settings. In these cases, it's best to
|
|
@@ -1901,6 +1884,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
1901
1884
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
1902
1885
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
1903
1886
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
1887
|
+
*
|
|
1888
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
1889
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
1904
1890
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
1905
1891
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1906
1892
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -2130,6 +2116,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
2130
2116
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
2131
2117
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
2132
2118
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
2119
|
+
*
|
|
2120
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
2121
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
2133
2122
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
2134
2123
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2135
2124
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -2377,6 +2366,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
2377
2366
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
2378
2367
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
2379
2368
|
* Default is true when a reduce function is defined.
|
|
2369
|
+
*
|
|
2370
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
2371
|
+
*
|
|
2372
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
2380
2373
|
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
2381
2374
|
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
2382
2375
|
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
@@ -2489,6 +2482,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
2489
2482
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
2490
2483
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
2491
2484
|
* Default is true when a reduce function is defined.
|
|
2485
|
+
*
|
|
2486
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
2487
|
+
*
|
|
2488
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
2492
2489
|
* @param {boolean} [params.stable] - Query parameter to specify whether use the same replica of the index on each
|
|
2493
2490
|
* request. The default value `false` contacts all replicas and returns the result from the first, fastest,
|
|
2494
2491
|
* responder. Setting it to `true` when used in conjunction with `update=false` may improve consistency at the
|
|
@@ -2862,6 +2859,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
2862
2859
|
* Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
|
|
2863
2860
|
* views. The index function decides what data to index and store in the index.
|
|
2864
2861
|
*
|
|
2862
|
+
* Before using read the
|
|
2863
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
2864
|
+
* the limitations and appropriate use cases.
|
|
2865
|
+
*
|
|
2865
2866
|
* @param {Object} params - The parameters to send to the service.
|
|
2866
2867
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
2867
2868
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -2946,6 +2947,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
2946
2947
|
* Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce
|
|
2947
2948
|
* views. The index function decides what data to index and store in the index.
|
|
2948
2949
|
*
|
|
2950
|
+
* Before using read the
|
|
2951
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
2952
|
+
* the limitations and appropriate use cases.
|
|
2953
|
+
*
|
|
2949
2954
|
* @param {Object} params - The parameters to send to the service.
|
|
2950
2955
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
2951
2956
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -3032,6 +3037,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3032
3037
|
* results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
|
|
3033
3038
|
* API.
|
|
3034
3039
|
*
|
|
3040
|
+
* Before using read the
|
|
3041
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
3042
|
+
* the limitations and appropriate use cases.
|
|
3043
|
+
*
|
|
3035
3044
|
* @param {Object} params - The parameters to send to the service.
|
|
3036
3045
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
3037
3046
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -3067,6 +3076,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3067
3076
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
3068
3077
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
3069
3078
|
* Default is true when a reduce function is defined.
|
|
3079
|
+
*
|
|
3080
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
3081
|
+
*
|
|
3082
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
3070
3083
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
3071
3084
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
3072
3085
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
@@ -3138,6 +3151,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3138
3151
|
* results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}`
|
|
3139
3152
|
* API.
|
|
3140
3153
|
*
|
|
3154
|
+
* Before using read the
|
|
3155
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
3156
|
+
* the limitations and appropriate use cases.
|
|
3157
|
+
*
|
|
3141
3158
|
* @param {Object} params - The parameters to send to the service.
|
|
3142
3159
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
3143
3160
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -3173,6 +3190,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3173
3190
|
* A JSON array of keys that match the key type emitted by the view function.
|
|
3174
3191
|
* @param {boolean} [params.reduce] - Parameter to specify whether to use the reduce function in a map-reduce view.
|
|
3175
3192
|
* Default is true when a reduce function is defined.
|
|
3193
|
+
*
|
|
3194
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
3195
|
+
*
|
|
3196
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
3176
3197
|
* @param {any} [params.startKey] - Schema for any JSON type.
|
|
3177
3198
|
* @param {string} [params.startKeyDocId] - Schema for a document ID.
|
|
3178
3199
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
@@ -3266,13 +3287,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3266
3287
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3267
3288
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3268
3289
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3269
|
-
* argument.
|
|
3270
|
-
*
|
|
3290
|
+
* argument.
|
|
3291
|
+
*
|
|
3292
|
+
* It is important for query performance to use appropriate selectors:
|
|
3271
3293
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3272
3294
|
* of a query. You should include at least one of these in a selector.
|
|
3295
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3296
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3297
|
+
* of documents that will need to be scanned.
|
|
3298
|
+
*
|
|
3299
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3300
|
+
* combination and conditional operators.
|
|
3273
3301
|
*
|
|
3274
|
-
* For further reference see
|
|
3275
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3302
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3276
3303
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3277
3304
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3278
3305
|
* existing conflicts in the document.
|
|
@@ -3303,6 +3330,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3303
3330
|
*
|
|
3304
3331
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3305
3332
|
* indexes that might get added later.
|
|
3333
|
+
*
|
|
3334
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3335
|
+
* full scan of all documents will answer the query.
|
|
3306
3336
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3307
3337
|
* @returns {Promise<CloudantV1.Response<CloudantV1.ExplainResult>>}
|
|
3308
3338
|
*/
|
|
@@ -3358,6 +3388,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3358
3388
|
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
3359
3389
|
* In this case the response body will include a warning field recommending that an index is created.
|
|
3360
3390
|
*
|
|
3391
|
+
* Before using read the
|
|
3392
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
3393
|
+
* the limitations and appropriate use cases.
|
|
3394
|
+
*
|
|
3361
3395
|
* @param {Object} params - The parameters to send to the service.
|
|
3362
3396
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
3363
3397
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -3381,13 +3415,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3381
3415
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3382
3416
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3383
3417
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3384
|
-
* argument.
|
|
3385
|
-
*
|
|
3418
|
+
* argument.
|
|
3419
|
+
*
|
|
3420
|
+
* It is important for query performance to use appropriate selectors:
|
|
3386
3421
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3387
3422
|
* of a query. You should include at least one of these in a selector.
|
|
3423
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3424
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3425
|
+
* of documents that will need to be scanned.
|
|
3388
3426
|
*
|
|
3389
|
-
*
|
|
3390
|
-
*
|
|
3427
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3428
|
+
* combination and conditional operators.
|
|
3429
|
+
*
|
|
3430
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3391
3431
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3392
3432
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3393
3433
|
* existing conflicts in the document.
|
|
@@ -3418,6 +3458,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3418
3458
|
*
|
|
3419
3459
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3420
3460
|
* indexes that might get added later.
|
|
3461
|
+
*
|
|
3462
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3463
|
+
* full scan of all documents will answer the query.
|
|
3421
3464
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3422
3465
|
* @returns {Promise<CloudantV1.Response<CloudantV1.FindResult>>}
|
|
3423
3466
|
*/
|
|
@@ -3473,6 +3516,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3473
3516
|
* recommended because it has a noticeable performance impact causing a full scan of the partition with each request.
|
|
3474
3517
|
* In this case the response body will include a warning field recommending that an index is created.
|
|
3475
3518
|
*
|
|
3519
|
+
* Before using read the
|
|
3520
|
+
* [FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying) to understand
|
|
3521
|
+
* the limitations and appropriate use cases.
|
|
3522
|
+
*
|
|
3476
3523
|
* @param {Object} params - The parameters to send to the service.
|
|
3477
3524
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
3478
3525
|
* @param {string} params.partitionKey - Path parameter to specify the database partition key.
|
|
@@ -3496,13 +3543,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3496
3543
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3497
3544
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3498
3545
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3499
|
-
* argument.
|
|
3500
|
-
*
|
|
3546
|
+
* argument.
|
|
3547
|
+
*
|
|
3548
|
+
* It is important for query performance to use appropriate selectors:
|
|
3501
3549
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3502
3550
|
* of a query. You should include at least one of these in a selector.
|
|
3551
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3552
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3553
|
+
* of documents that will need to be scanned.
|
|
3554
|
+
*
|
|
3555
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3556
|
+
* combination and conditional operators.
|
|
3503
3557
|
*
|
|
3504
|
-
* For further reference see
|
|
3505
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3558
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3506
3559
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3507
3560
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3508
3561
|
* existing conflicts in the document.
|
|
@@ -3533,6 +3586,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3533
3586
|
*
|
|
3534
3587
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3535
3588
|
* indexes that might get added later.
|
|
3589
|
+
*
|
|
3590
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3591
|
+
* full scan of all documents will answer the query.
|
|
3536
3592
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3537
3593
|
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3538
3594
|
*/
|
|
@@ -3609,13 +3665,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3609
3665
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3610
3666
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3611
3667
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3612
|
-
* argument.
|
|
3613
|
-
*
|
|
3668
|
+
* argument.
|
|
3669
|
+
*
|
|
3670
|
+
* It is important for query performance to use appropriate selectors:
|
|
3614
3671
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3615
3672
|
* of a query. You should include at least one of these in a selector.
|
|
3673
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3674
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3675
|
+
* of documents that will need to be scanned.
|
|
3676
|
+
*
|
|
3677
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3678
|
+
* combination and conditional operators.
|
|
3616
3679
|
*
|
|
3617
|
-
* For further reference see
|
|
3618
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3680
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3619
3681
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3620
3682
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3621
3683
|
* existing conflicts in the document.
|
|
@@ -3646,6 +3708,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3646
3708
|
*
|
|
3647
3709
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3648
3710
|
* indexes that might get added later.
|
|
3711
|
+
*
|
|
3712
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3713
|
+
* full scan of all documents will answer the query.
|
|
3649
3714
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
3650
3715
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
3651
3716
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -3727,13 +3792,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3727
3792
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3728
3793
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3729
3794
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3730
|
-
* argument.
|
|
3731
|
-
*
|
|
3795
|
+
* argument.
|
|
3796
|
+
*
|
|
3797
|
+
* It is important for query performance to use appropriate selectors:
|
|
3732
3798
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3733
3799
|
* of a query. You should include at least one of these in a selector.
|
|
3800
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3801
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3802
|
+
* of documents that will need to be scanned.
|
|
3734
3803
|
*
|
|
3735
|
-
*
|
|
3736
|
-
*
|
|
3804
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3805
|
+
* combination and conditional operators.
|
|
3806
|
+
*
|
|
3807
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3737
3808
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3738
3809
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3739
3810
|
* existing conflicts in the document.
|
|
@@ -3764,6 +3835,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3764
3835
|
*
|
|
3765
3836
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3766
3837
|
* indexes that might get added later.
|
|
3838
|
+
*
|
|
3839
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3840
|
+
* full scan of all documents will answer the query.
|
|
3767
3841
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
3768
3842
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
3769
3843
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -3845,13 +3919,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3845
3919
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
3846
3920
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
3847
3921
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the supplied
|
|
3848
|
-
* argument.
|
|
3849
|
-
*
|
|
3922
|
+
* argument.
|
|
3923
|
+
*
|
|
3924
|
+
* It is important for query performance to use appropriate selectors:
|
|
3850
3925
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the basis
|
|
3851
3926
|
* of a query. You should include at least one of these in a selector.
|
|
3927
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query selectors
|
|
3928
|
+
* use these operators in conjunction with equality operators or create and use a partial index to reduce the number
|
|
3929
|
+
* of documents that will need to be scanned.
|
|
3852
3930
|
*
|
|
3853
|
-
*
|
|
3854
|
-
*
|
|
3931
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
3932
|
+
* combination and conditional operators.
|
|
3933
|
+
*
|
|
3934
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
3855
3935
|
* @param {string} [params.bookmark] - Opaque bookmark token used when paginating results.
|
|
3856
3936
|
* @param {boolean} [params.conflicts] - A boolean value that indicates whether or not to include information about
|
|
3857
3937
|
* existing conflicts in the document.
|
|
@@ -3882,6 +3962,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
3882
3962
|
*
|
|
3883
3963
|
* It’s recommended to specify indexes explicitly in your queries to prevent existing queries being affected by new
|
|
3884
3964
|
* indexes that might get added later.
|
|
3965
|
+
*
|
|
3966
|
+
* If the specified index does not exist or cannot answer the query then the value is ignored and another index or a
|
|
3967
|
+
* full scan of all documents will answer the query.
|
|
3885
3968
|
* @param {number} [params.r] - The read quorum that is needed for the result. The value defaults to 1, in which case
|
|
3886
3969
|
* the document that was found in the index is returned. If set to a higher value, each document is read from at least
|
|
3887
3970
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
@@ -4618,6 +4701,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
4618
4701
|
* @param {boolean} [params.newEdits] - Query parameter to specify whether to prevent insertion of conflicting
|
|
4619
4702
|
* document revisions. If false, a well-formed _rev must be included in the document. False is used by the replicator
|
|
4620
4703
|
* to insert documents into the target database even if that leads to the creation of conflicts.
|
|
4704
|
+
*
|
|
4705
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it is
|
|
4706
|
+
* very easy to accidentally end up with a large number of conflicts.
|
|
4621
4707
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
4622
4708
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4623
4709
|
* @returns {Promise<CloudantV1.Response<CloudantV1.DocumentResult>>}
|
|
@@ -5713,6 +5799,39 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
5713
5799
|
};
|
|
5714
5800
|
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.ActiveTask.deserialize);
|
|
5715
5801
|
}
|
|
5802
|
+
/**
|
|
5803
|
+
* Retrieve cluster membership information.
|
|
5804
|
+
*
|
|
5805
|
+
* Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this
|
|
5806
|
+
* node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a
|
|
5807
|
+
* cluster.
|
|
5808
|
+
*
|
|
5809
|
+
* @param {Object} [params] - The parameters to send to the service.
|
|
5810
|
+
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5811
|
+
* @returns {Promise<CloudantV1.Response<CloudantV1.MembershipInformation>>}
|
|
5812
|
+
*/
|
|
5813
|
+
getMembershipInformation(params) {
|
|
5814
|
+
const _params = { ...params };
|
|
5815
|
+
const _requiredParams = [];
|
|
5816
|
+
const _validParams = ['headers'];
|
|
5817
|
+
const _validationErrors = (0, ibm_cloud_sdk_core_1.validateParams)(_params, _requiredParams, _validParams);
|
|
5818
|
+
if (_validationErrors) {
|
|
5819
|
+
return Promise.reject(_validationErrors);
|
|
5820
|
+
}
|
|
5821
|
+
const sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getMembershipInformation');
|
|
5822
|
+
const parameters = {
|
|
5823
|
+
options: {
|
|
5824
|
+
url: '/_membership',
|
|
5825
|
+
method: 'GET',
|
|
5826
|
+
},
|
|
5827
|
+
defaultOptions: (0, extend_1.default)(true, {}, this.baseOptions, {
|
|
5828
|
+
headers: (0, extend_1.default)(true, sdkHeaders, {
|
|
5829
|
+
'Accept': 'application/json',
|
|
5830
|
+
}, _params.headers),
|
|
5831
|
+
}),
|
|
5832
|
+
};
|
|
5833
|
+
return this.createRequestAndDeserializeResponse(parameters, CloudantV1.MembershipInformation.deserialize);
|
|
5834
|
+
}
|
|
5716
5835
|
/**
|
|
5717
5836
|
* Retrieve information about whether the server is up.
|
|
5718
5837
|
*
|
|
@@ -6344,7 +6463,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6344
6463
|
/*************************
|
|
6345
6464
|
* model interfaces
|
|
6346
6465
|
************************/
|
|
6347
|
-
/**
|
|
6466
|
+
/**
|
|
6467
|
+
* Schema for information about a running task.
|
|
6468
|
+
*/
|
|
6348
6469
|
class ActiveTask {
|
|
6349
6470
|
/** The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks. */
|
|
6350
6471
|
bulkGetAttempts;
|
|
@@ -6683,7 +6804,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6683
6804
|
})(Type = Constants.Type || (Constants.Type = {}));
|
|
6684
6805
|
})(Constants = ActiveTask.Constants || (ActiveTask.Constants = {}));
|
|
6685
6806
|
})(ActiveTask = CloudantV1.ActiveTask || (CloudantV1.ActiveTask = {}));
|
|
6686
|
-
/**
|
|
6807
|
+
/**
|
|
6808
|
+
* Schema for Activity Tracker events.
|
|
6809
|
+
*/
|
|
6687
6810
|
class ActivityTrackerEvents {
|
|
6688
6811
|
/** An array of event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
|
|
6689
6812
|
* "management" is a required element of this array.
|
|
@@ -6722,7 +6845,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6722
6845
|
})(Types = Constants.Types || (Constants.Types = {}));
|
|
6723
6846
|
})(Constants = ActivityTrackerEvents.Constants || (ActivityTrackerEvents.Constants = {}));
|
|
6724
6847
|
})(ActivityTrackerEvents = CloudantV1.ActivityTrackerEvents || (CloudantV1.ActivityTrackerEvents = {}));
|
|
6725
|
-
/**
|
|
6848
|
+
/**
|
|
6849
|
+
* Schema for the result of an all documents queries operation.
|
|
6850
|
+
*/
|
|
6726
6851
|
class AllDocsQueriesResult {
|
|
6727
6852
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
6728
6853
|
* to a regular `/_all_docs` request.
|
|
@@ -6750,7 +6875,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6750
6875
|
}
|
|
6751
6876
|
}
|
|
6752
6877
|
CloudantV1.AllDocsQueriesResult = AllDocsQueriesResult;
|
|
6753
|
-
/**
|
|
6878
|
+
/**
|
|
6879
|
+
* Schema for an all documents query operation.
|
|
6880
|
+
*/
|
|
6754
6881
|
class AllDocsQuery {
|
|
6755
6882
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
6756
6883
|
* attachment is compressed.
|
|
@@ -6878,7 +7005,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6878
7005
|
}
|
|
6879
7006
|
}
|
|
6880
7007
|
CloudantV1.AllDocsQuery = AllDocsQuery;
|
|
6881
|
-
/**
|
|
7008
|
+
/**
|
|
7009
|
+
* Schema for the result of an all documents operation.
|
|
7010
|
+
*/
|
|
6882
7011
|
class AllDocsResult {
|
|
6883
7012
|
/** Number of total rows. */
|
|
6884
7013
|
totalRows;
|
|
@@ -6920,7 +7049,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
6920
7049
|
}
|
|
6921
7050
|
}
|
|
6922
7051
|
CloudantV1.AllDocsResult = AllDocsResult;
|
|
6923
|
-
/**
|
|
7052
|
+
/**
|
|
7053
|
+
* Schema for a full text search analyzer.
|
|
7054
|
+
*/
|
|
6924
7055
|
class Analyzer {
|
|
6925
7056
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
6926
7057
|
* depending on the analyzer usage:
|
|
@@ -7008,7 +7139,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7008
7139
|
})(Name = Constants.Name || (Constants.Name = {}));
|
|
7009
7140
|
})(Constants = Analyzer.Constants || (Analyzer.Constants = {}));
|
|
7010
7141
|
})(Analyzer = CloudantV1.Analyzer || (CloudantV1.Analyzer = {}));
|
|
7011
|
-
/**
|
|
7142
|
+
/**
|
|
7143
|
+
* Schema for a search analyzer configuration.
|
|
7144
|
+
*/
|
|
7012
7145
|
class AnalyzerConfiguration {
|
|
7013
7146
|
/** Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies
|
|
7014
7147
|
* depending on the analyzer usage:
|
|
@@ -7104,7 +7237,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7104
7237
|
})(Name = Constants.Name || (Constants.Name = {}));
|
|
7105
7238
|
})(Constants = AnalyzerConfiguration.Constants || (AnalyzerConfiguration.Constants = {}));
|
|
7106
7239
|
})(AnalyzerConfiguration = CloudantV1.AnalyzerConfiguration || (CloudantV1.AnalyzerConfiguration = {}));
|
|
7107
|
-
/**
|
|
7240
|
+
/**
|
|
7241
|
+
* Schema for api keys.
|
|
7242
|
+
*/
|
|
7108
7243
|
class ApiKeysResult {
|
|
7109
7244
|
/** ok. */
|
|
7110
7245
|
ok;
|
|
@@ -7146,7 +7281,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7146
7281
|
}
|
|
7147
7282
|
}
|
|
7148
7283
|
CloudantV1.ApiKeysResult = ApiKeysResult;
|
|
7149
|
-
/**
|
|
7284
|
+
/**
|
|
7285
|
+
* Schema for an attachment.
|
|
7286
|
+
*/
|
|
7150
7287
|
class Attachment {
|
|
7151
7288
|
/** Attachment MIME type. */
|
|
7152
7289
|
contentType;
|
|
@@ -7247,11 +7384,17 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7247
7384
|
}
|
|
7248
7385
|
}
|
|
7249
7386
|
CloudantV1.Attachment = Attachment;
|
|
7250
|
-
/**
|
|
7387
|
+
/**
|
|
7388
|
+
* Schema for submitting documents for bulk modifications.
|
|
7389
|
+
*/
|
|
7251
7390
|
class BulkDocs {
|
|
7252
7391
|
/** Array of documents. */
|
|
7253
7392
|
docs;
|
|
7254
|
-
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
7393
|
+
/** If `false`, prevents the database from assigning them new revision IDs. Default is `true`.
|
|
7394
|
+
*
|
|
7395
|
+
* Avoid using this parameter, since this option applies document revisions without checking for conflicts, so it
|
|
7396
|
+
* is very easy to accidentally end up with a large number of conflicts.
|
|
7397
|
+
*/
|
|
7255
7398
|
newEdits;
|
|
7256
7399
|
static serialize(obj) {
|
|
7257
7400
|
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
@@ -7281,7 +7424,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7281
7424
|
}
|
|
7282
7425
|
}
|
|
7283
7426
|
CloudantV1.BulkDocs = BulkDocs;
|
|
7284
|
-
/**
|
|
7427
|
+
/**
|
|
7428
|
+
* Schema for a document item in a bulk get query.
|
|
7429
|
+
*/
|
|
7285
7430
|
class BulkGetQueryDocument {
|
|
7286
7431
|
/** Includes attachments only since specified revisions. */
|
|
7287
7432
|
attsSince;
|
|
@@ -7323,7 +7468,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7323
7468
|
}
|
|
7324
7469
|
}
|
|
7325
7470
|
CloudantV1.BulkGetQueryDocument = BulkGetQueryDocument;
|
|
7326
|
-
/**
|
|
7471
|
+
/**
|
|
7472
|
+
* Schema for the results object of a bulk get operation.
|
|
7473
|
+
*/
|
|
7327
7474
|
class BulkGetResult {
|
|
7328
7475
|
/** Results. */
|
|
7329
7476
|
results;
|
|
@@ -7349,7 +7496,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7349
7496
|
}
|
|
7350
7497
|
}
|
|
7351
7498
|
CloudantV1.BulkGetResult = BulkGetResult;
|
|
7352
|
-
/**
|
|
7499
|
+
/**
|
|
7500
|
+
* Schema for BulkGetResult object containing a successfully retrieved document or error information.
|
|
7501
|
+
*/
|
|
7353
7502
|
class BulkGetResultDocument {
|
|
7354
7503
|
/** Schema for the result of a document modification. */
|
|
7355
7504
|
error;
|
|
@@ -7383,7 +7532,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7383
7532
|
}
|
|
7384
7533
|
}
|
|
7385
7534
|
CloudantV1.BulkGetResultDocument = BulkGetResultDocument;
|
|
7386
|
-
/**
|
|
7535
|
+
/**
|
|
7536
|
+
* Schema for the document revisions information from a bulk get operation.
|
|
7537
|
+
*/
|
|
7387
7538
|
class BulkGetResultItem {
|
|
7388
7539
|
/** Array of document revisions or error information. */
|
|
7389
7540
|
docs;
|
|
@@ -7417,7 +7568,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7417
7568
|
}
|
|
7418
7569
|
}
|
|
7419
7570
|
CloudantV1.BulkGetResultItem = BulkGetResultItem;
|
|
7420
|
-
/**
|
|
7571
|
+
/**
|
|
7572
|
+
* Schema for information about the currently provisioned and target throughput capacity.
|
|
7573
|
+
*/
|
|
7421
7574
|
class CapacityThroughputInformation {
|
|
7422
7575
|
/** Detailed information about provisioned throughput capacity. */
|
|
7423
7576
|
current;
|
|
@@ -7451,7 +7604,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7451
7604
|
}
|
|
7452
7605
|
}
|
|
7453
7606
|
CloudantV1.CapacityThroughputInformation = CapacityThroughputInformation;
|
|
7454
|
-
/**
|
|
7607
|
+
/**
|
|
7608
|
+
* Detailed information about provisioned throughput capacity.
|
|
7609
|
+
*/
|
|
7455
7610
|
class CapacityThroughputInformationCurrent {
|
|
7456
7611
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
7457
7612
|
* classes.
|
|
@@ -7479,7 +7634,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7479
7634
|
}
|
|
7480
7635
|
}
|
|
7481
7636
|
CloudantV1.CapacityThroughputInformationCurrent = CapacityThroughputInformationCurrent;
|
|
7482
|
-
/**
|
|
7637
|
+
/**
|
|
7638
|
+
* Detailed information about target throughput capacity.
|
|
7639
|
+
*/
|
|
7483
7640
|
class CapacityThroughputInformationTarget {
|
|
7484
7641
|
/** Schema for detailed information about throughput capacity with breakdown by specific throughput requests
|
|
7485
7642
|
* classes.
|
|
@@ -7507,7 +7664,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7507
7664
|
}
|
|
7508
7665
|
}
|
|
7509
7666
|
CloudantV1.CapacityThroughputInformationTarget = CapacityThroughputInformationTarget;
|
|
7510
|
-
/**
|
|
7667
|
+
/**
|
|
7668
|
+
* Schema for a document leaf with single field rev.
|
|
7669
|
+
*/
|
|
7511
7670
|
class Change {
|
|
7512
7671
|
/** Schema for a document revision identifier. */
|
|
7513
7672
|
rev;
|
|
@@ -7533,7 +7692,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7533
7692
|
}
|
|
7534
7693
|
}
|
|
7535
7694
|
CloudantV1.Change = Change;
|
|
7536
|
-
/**
|
|
7695
|
+
/**
|
|
7696
|
+
* Schema for normal changes feed result.
|
|
7697
|
+
*/
|
|
7537
7698
|
class ChangesResult {
|
|
7538
7699
|
/** last_seq. */
|
|
7539
7700
|
lastSeq;
|
|
@@ -7575,7 +7736,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7575
7736
|
}
|
|
7576
7737
|
}
|
|
7577
7738
|
CloudantV1.ChangesResult = ChangesResult;
|
|
7578
|
-
/**
|
|
7739
|
+
/**
|
|
7740
|
+
* Schema for an item in the changes results array.
|
|
7741
|
+
*/
|
|
7579
7742
|
class ChangesResultItem {
|
|
7580
7743
|
/** List of document's leaves with single field rev. */
|
|
7581
7744
|
changes;
|
|
@@ -7633,7 +7796,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7633
7796
|
}
|
|
7634
7797
|
}
|
|
7635
7798
|
CloudantV1.ChangesResultItem = ChangesResultItem;
|
|
7636
|
-
/**
|
|
7799
|
+
/**
|
|
7800
|
+
* Schema for size information of content.
|
|
7801
|
+
*/
|
|
7637
7802
|
class ContentInformationSizes {
|
|
7638
7803
|
/** The active size of the content, in bytes. */
|
|
7639
7804
|
active;
|
|
@@ -7675,7 +7840,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7675
7840
|
}
|
|
7676
7841
|
}
|
|
7677
7842
|
CloudantV1.ContentInformationSizes = ContentInformationSizes;
|
|
7678
|
-
/**
|
|
7843
|
+
/**
|
|
7844
|
+
* Schema for information about the CORS configuration.
|
|
7845
|
+
*/
|
|
7679
7846
|
class CorsInformation {
|
|
7680
7847
|
/** Boolean value to allow authentication credentials. If set to true, browser requests must be done by using
|
|
7681
7848
|
* withCredentials = true.
|
|
@@ -7722,7 +7889,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7722
7889
|
}
|
|
7723
7890
|
}
|
|
7724
7891
|
CloudantV1.CorsInformation = CorsInformation;
|
|
7725
|
-
/**
|
|
7892
|
+
/**
|
|
7893
|
+
* Schema for information about current consumption of a provisioned throughput capacity.
|
|
7894
|
+
*/
|
|
7726
7895
|
class CurrentThroughputInformation {
|
|
7727
7896
|
/** Detailed information about current consumption. */
|
|
7728
7897
|
throughput;
|
|
@@ -7748,7 +7917,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7748
7917
|
}
|
|
7749
7918
|
}
|
|
7750
7919
|
CloudantV1.CurrentThroughputInformation = CurrentThroughputInformation;
|
|
7751
|
-
/**
|
|
7920
|
+
/**
|
|
7921
|
+
* Detailed information about current consumption.
|
|
7922
|
+
*/
|
|
7752
7923
|
class CurrentThroughputInformationThroughput {
|
|
7753
7924
|
/** Number of global queries conducted against the instance for a given second. */
|
|
7754
7925
|
query;
|
|
@@ -7790,7 +7961,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7790
7961
|
}
|
|
7791
7962
|
}
|
|
7792
7963
|
CloudantV1.CurrentThroughputInformationThroughput = CurrentThroughputInformationThroughput;
|
|
7793
|
-
/**
|
|
7964
|
+
/**
|
|
7965
|
+
* Schema for information about a database.
|
|
7966
|
+
*/
|
|
7794
7967
|
class DatabaseInformation {
|
|
7795
7968
|
/** Schema for database cluster information. */
|
|
7796
7969
|
cluster;
|
|
@@ -7932,7 +8105,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7932
8105
|
}
|
|
7933
8106
|
}
|
|
7934
8107
|
CloudantV1.DatabaseInformation = DatabaseInformation;
|
|
7935
|
-
/**
|
|
8108
|
+
/**
|
|
8109
|
+
* Schema for database cluster information.
|
|
8110
|
+
*/
|
|
7936
8111
|
class DatabaseInformationCluster {
|
|
7937
8112
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
7938
8113
|
* cannot be changed by the user.
|
|
@@ -7984,7 +8159,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
7984
8159
|
}
|
|
7985
8160
|
}
|
|
7986
8161
|
CloudantV1.DatabaseInformationCluster = DatabaseInformationCluster;
|
|
7987
|
-
/**
|
|
8162
|
+
/**
|
|
8163
|
+
* Schema for database properties.
|
|
8164
|
+
*/
|
|
7988
8165
|
class DatabaseInformationProps {
|
|
7989
8166
|
/** The value is `true` for a partitioned database. */
|
|
7990
8167
|
partitioned;
|
|
@@ -8010,7 +8187,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8010
8187
|
}
|
|
8011
8188
|
}
|
|
8012
8189
|
CloudantV1.DatabaseInformationProps = DatabaseInformationProps;
|
|
8013
|
-
/**
|
|
8190
|
+
/**
|
|
8191
|
+
* Schema for a database change event.
|
|
8192
|
+
*/
|
|
8014
8193
|
class DbEvent {
|
|
8015
8194
|
/** Database name. */
|
|
8016
8195
|
dbName;
|
|
@@ -8064,7 +8243,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8064
8243
|
})(Type = Constants.Type || (Constants.Type = {}));
|
|
8065
8244
|
})(Constants = DbEvent.Constants || (DbEvent.Constants = {}));
|
|
8066
8245
|
})(DbEvent = CloudantV1.DbEvent || (CloudantV1.DbEvent = {}));
|
|
8067
|
-
/**
|
|
8246
|
+
/**
|
|
8247
|
+
* Schema for database updates.
|
|
8248
|
+
*/
|
|
8068
8249
|
class DbUpdates {
|
|
8069
8250
|
/** Last sequence number. */
|
|
8070
8251
|
lastSeq;
|
|
@@ -8098,7 +8279,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8098
8279
|
}
|
|
8099
8280
|
}
|
|
8100
8281
|
CloudantV1.DbUpdates = DbUpdates;
|
|
8101
|
-
/**
|
|
8282
|
+
/**
|
|
8283
|
+
* Schema for database information keyed by database name.
|
|
8284
|
+
*/
|
|
8102
8285
|
class DbsInfoResult {
|
|
8103
8286
|
/** The name of the error. */
|
|
8104
8287
|
error;
|
|
@@ -8140,7 +8323,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8140
8323
|
}
|
|
8141
8324
|
}
|
|
8142
8325
|
CloudantV1.DbsInfoResult = DbsInfoResult;
|
|
8143
|
-
/**
|
|
8326
|
+
/**
|
|
8327
|
+
* Schema for a design document.
|
|
8328
|
+
*
|
|
8329
|
+
* This type supports additional properties of type any.
|
|
8330
|
+
*/
|
|
8144
8331
|
class DesignDocument {
|
|
8145
8332
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
8146
8333
|
_attachments;
|
|
@@ -8398,7 +8585,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8398
8585
|
}
|
|
8399
8586
|
}
|
|
8400
8587
|
CloudantV1.DesignDocument = DesignDocument;
|
|
8401
|
-
/**
|
|
8588
|
+
/**
|
|
8589
|
+
* Schema for information about a design document.
|
|
8590
|
+
*/
|
|
8402
8591
|
class DesignDocumentInformation {
|
|
8403
8592
|
/** name. */
|
|
8404
8593
|
name;
|
|
@@ -8432,7 +8621,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8432
8621
|
}
|
|
8433
8622
|
}
|
|
8434
8623
|
CloudantV1.DesignDocumentInformation = DesignDocumentInformation;
|
|
8435
|
-
/**
|
|
8624
|
+
/**
|
|
8625
|
+
* Schema for design document options.
|
|
8626
|
+
*/
|
|
8436
8627
|
class DesignDocumentOptions {
|
|
8437
8628
|
/** Whether this design document describes partitioned or global indexes. */
|
|
8438
8629
|
partitioned;
|
|
@@ -8458,7 +8649,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8458
8649
|
}
|
|
8459
8650
|
}
|
|
8460
8651
|
CloudantV1.DesignDocumentOptions = DesignDocumentOptions;
|
|
8461
|
-
/**
|
|
8652
|
+
/**
|
|
8653
|
+
* View index information.
|
|
8654
|
+
*/
|
|
8462
8655
|
class DesignDocumentViewIndex {
|
|
8463
8656
|
/** List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but
|
|
8464
8657
|
* compaction has not run yet.
|
|
@@ -8550,7 +8743,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8550
8743
|
}
|
|
8551
8744
|
}
|
|
8552
8745
|
CloudantV1.DesignDocumentViewIndex = DesignDocumentViewIndex;
|
|
8553
|
-
/**
|
|
8746
|
+
/**
|
|
8747
|
+
* Schema for view functions definition.
|
|
8748
|
+
*/
|
|
8554
8749
|
class DesignDocumentViewsMapReduce {
|
|
8555
8750
|
/** JavaScript map function as a string. */
|
|
8556
8751
|
map;
|
|
@@ -8584,7 +8779,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8584
8779
|
}
|
|
8585
8780
|
}
|
|
8586
8781
|
CloudantV1.DesignDocumentViewsMapReduce = DesignDocumentViewsMapReduce;
|
|
8587
|
-
/**
|
|
8782
|
+
/**
|
|
8783
|
+
* Schema for a row of document information in a DocsResult.
|
|
8784
|
+
*/
|
|
8588
8785
|
class DocsResultRow {
|
|
8589
8786
|
/** The cause of the error (if available). */
|
|
8590
8787
|
causedBy;
|
|
@@ -8666,7 +8863,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8666
8863
|
}
|
|
8667
8864
|
}
|
|
8668
8865
|
CloudantV1.DocsResultRow = DocsResultRow;
|
|
8669
|
-
/**
|
|
8866
|
+
/**
|
|
8867
|
+
* Value of built-in `/_all_docs` style view.
|
|
8868
|
+
*/
|
|
8670
8869
|
class DocsResultRowValue {
|
|
8671
8870
|
/** If `true` then the document is deleted. Not present for undeleted documents. */
|
|
8672
8871
|
deleted;
|
|
@@ -8700,7 +8899,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8700
8899
|
}
|
|
8701
8900
|
}
|
|
8702
8901
|
CloudantV1.DocsResultRowValue = DocsResultRowValue;
|
|
8703
|
-
/**
|
|
8902
|
+
/**
|
|
8903
|
+
* Schema for a document.
|
|
8904
|
+
*
|
|
8905
|
+
* This type supports additional properties of type any.
|
|
8906
|
+
*/
|
|
8704
8907
|
class Document {
|
|
8705
8908
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
8706
8909
|
_attachments;
|
|
@@ -8822,7 +9025,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8822
9025
|
}
|
|
8823
9026
|
}
|
|
8824
9027
|
CloudantV1.Document = Document;
|
|
8825
|
-
/**
|
|
9028
|
+
/**
|
|
9029
|
+
* Schema for the result of a document modification.
|
|
9030
|
+
*/
|
|
8826
9031
|
class DocumentResult {
|
|
8827
9032
|
/** Schema for a document ID. */
|
|
8828
9033
|
id;
|
|
@@ -8896,7 +9101,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8896
9101
|
}
|
|
8897
9102
|
}
|
|
8898
9103
|
CloudantV1.DocumentResult = DocumentResult;
|
|
8899
|
-
/**
|
|
9104
|
+
/**
|
|
9105
|
+
* Schema for information about revisions and their status.
|
|
9106
|
+
*/
|
|
8900
9107
|
class DocumentRevisionStatus {
|
|
8901
9108
|
/** Schema for a document revision identifier. */
|
|
8902
9109
|
rev;
|
|
@@ -8944,7 +9151,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8944
9151
|
})(Status = Constants.Status || (Constants.Status = {}));
|
|
8945
9152
|
})(Constants = DocumentRevisionStatus.Constants || (DocumentRevisionStatus.Constants = {}));
|
|
8946
9153
|
})(DocumentRevisionStatus = CloudantV1.DocumentRevisionStatus || (CloudantV1.DocumentRevisionStatus = {}));
|
|
8947
|
-
/**
|
|
9154
|
+
/**
|
|
9155
|
+
* Schema for document shard information.
|
|
9156
|
+
*/
|
|
8948
9157
|
class DocumentShardInfo {
|
|
8949
9158
|
/** List of nodes serving a replica of the shard. */
|
|
8950
9159
|
nodes;
|
|
@@ -8978,7 +9187,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
8978
9187
|
}
|
|
8979
9188
|
}
|
|
8980
9189
|
CloudantV1.DocumentShardInfo = DocumentShardInfo;
|
|
8981
|
-
/**
|
|
9190
|
+
/**
|
|
9191
|
+
* Schema for find query execution statistics.
|
|
9192
|
+
*/
|
|
8982
9193
|
class ExecutionStats {
|
|
8983
9194
|
/** Time to execute the query. */
|
|
8984
9195
|
executionTimeMs;
|
|
@@ -9036,7 +9247,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9036
9247
|
}
|
|
9037
9248
|
}
|
|
9038
9249
|
CloudantV1.ExecutionStats = ExecutionStats;
|
|
9039
|
-
/**
|
|
9250
|
+
/**
|
|
9251
|
+
* Schema for information about the index used for a find query.
|
|
9252
|
+
*/
|
|
9040
9253
|
class ExplainResult {
|
|
9041
9254
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
9042
9255
|
covering;
|
|
@@ -9078,13 +9291,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9078
9291
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
9079
9292
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
9080
9293
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
9081
|
-
* supplied argument.
|
|
9082
|
-
*
|
|
9294
|
+
* supplied argument.
|
|
9295
|
+
*
|
|
9296
|
+
* It is important for query performance to use appropriate selectors:
|
|
9083
9297
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
9084
9298
|
* basis of a query. You should include at least one of these in a selector.
|
|
9299
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
9300
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
9301
|
+
* the number of documents that will need to be scanned.
|
|
9085
9302
|
*
|
|
9086
|
-
*
|
|
9087
|
-
*
|
|
9303
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
9304
|
+
* combination and conditional operators.
|
|
9305
|
+
*
|
|
9306
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
9088
9307
|
*/
|
|
9089
9308
|
selector;
|
|
9090
9309
|
/** Schema for a list of objects with extra information on the selector to provide insights about its usability. */
|
|
@@ -9179,7 +9398,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9179
9398
|
}
|
|
9180
9399
|
}
|
|
9181
9400
|
CloudantV1.ExplainResult = ExplainResult;
|
|
9182
|
-
/**
|
|
9401
|
+
/**
|
|
9402
|
+
* Arguments passed to the underlying view.
|
|
9403
|
+
*/
|
|
9183
9404
|
class ExplainResultMrArgs {
|
|
9184
9405
|
/** Schema for any JSON type. */
|
|
9185
9406
|
conflicts;
|
|
@@ -9294,7 +9515,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9294
9515
|
})(ViewType = Constants.ViewType || (Constants.ViewType = {}));
|
|
9295
9516
|
})(Constants = ExplainResultMrArgs.Constants || (ExplainResultMrArgs.Constants = {}));
|
|
9296
9517
|
})(ExplainResultMrArgs = CloudantV1.ExplainResultMrArgs || (CloudantV1.ExplainResultMrArgs = {}));
|
|
9297
|
-
/**
|
|
9518
|
+
/**
|
|
9519
|
+
* Options used for the request.
|
|
9520
|
+
*/
|
|
9298
9521
|
class ExplainResultOpts {
|
|
9299
9522
|
/** Opaque bookmark token used when paginating results. */
|
|
9300
9523
|
bookmark;
|
|
@@ -9420,7 +9643,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9420
9643
|
}
|
|
9421
9644
|
}
|
|
9422
9645
|
CloudantV1.ExplainResultOpts = ExplainResultOpts;
|
|
9423
|
-
/**
|
|
9646
|
+
/**
|
|
9647
|
+
* Schema for the result of a query find operation.
|
|
9648
|
+
*/
|
|
9424
9649
|
class FindResult {
|
|
9425
9650
|
/** Opaque bookmark token used when paginating results. */
|
|
9426
9651
|
bookmark;
|
|
@@ -9470,7 +9695,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9470
9695
|
}
|
|
9471
9696
|
}
|
|
9472
9697
|
CloudantV1.FindResult = FindResult;
|
|
9473
|
-
/**
|
|
9698
|
+
/**
|
|
9699
|
+
* Schema for detailed explanation of why the specific index was excluded by the query planner.
|
|
9700
|
+
*/
|
|
9474
9701
|
class IndexAnalysis {
|
|
9475
9702
|
/** When `true`, the query is answered using the index only and no documents are fetched. */
|
|
9476
9703
|
covering;
|
|
@@ -9520,7 +9747,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9520
9747
|
}
|
|
9521
9748
|
}
|
|
9522
9749
|
CloudantV1.IndexAnalysis = IndexAnalysis;
|
|
9523
|
-
/**
|
|
9750
|
+
/**
|
|
9751
|
+
* A reason for index's exclusion.
|
|
9752
|
+
*/
|
|
9524
9753
|
class IndexAnalysisExclusionReason {
|
|
9525
9754
|
/** A reason code for index's exclusion.
|
|
9526
9755
|
*
|
|
@@ -9584,7 +9813,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9584
9813
|
})(Name = Constants.Name || (Constants.Name = {}));
|
|
9585
9814
|
})(Constants = IndexAnalysisExclusionReason.Constants || (IndexAnalysisExclusionReason.Constants = {}));
|
|
9586
9815
|
})(IndexAnalysisExclusionReason = CloudantV1.IndexAnalysisExclusionReason || (CloudantV1.IndexAnalysisExclusionReason = {}));
|
|
9587
|
-
/**
|
|
9816
|
+
/**
|
|
9817
|
+
* Schema for an index that was not chosen for serving the query with the reason for the exclusion.
|
|
9818
|
+
*/
|
|
9588
9819
|
class IndexCandidate {
|
|
9589
9820
|
/** Schema for detailed explanation of why the specific index was excluded by the query planner. */
|
|
9590
9821
|
analysis;
|
|
@@ -9618,7 +9849,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9618
9849
|
}
|
|
9619
9850
|
}
|
|
9620
9851
|
CloudantV1.IndexCandidate = IndexCandidate;
|
|
9621
|
-
/**
|
|
9852
|
+
/**
|
|
9853
|
+
* Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration
|
|
9854
|
+
* properties that do not apply to `json` indexes, these are:
|
|
9855
|
+
* * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all
|
|
9856
|
+
* document fields and what analyzer to use for that purpose.
|
|
9857
|
+
*/
|
|
9622
9858
|
class IndexDefinition {
|
|
9623
9859
|
/** Schema for a full text search analyzer. */
|
|
9624
9860
|
defaultAnalyzer;
|
|
@@ -9661,13 +9897,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9661
9897
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
9662
9898
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
9663
9899
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
9664
|
-
* supplied argument.
|
|
9665
|
-
*
|
|
9900
|
+
* supplied argument.
|
|
9901
|
+
*
|
|
9902
|
+
* It is important for query performance to use appropriate selectors:
|
|
9666
9903
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
9667
9904
|
* basis of a query. You should include at least one of these in a selector.
|
|
9905
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
9906
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
9907
|
+
* the number of documents that will need to be scanned.
|
|
9908
|
+
*
|
|
9909
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
9910
|
+
* combination and conditional operators.
|
|
9668
9911
|
*
|
|
9669
|
-
* For further reference see
|
|
9670
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
9912
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
9671
9913
|
*/
|
|
9672
9914
|
partialFilterSelector;
|
|
9673
9915
|
static serialize(obj) {
|
|
@@ -9716,7 +9958,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9716
9958
|
}
|
|
9717
9959
|
}
|
|
9718
9960
|
CloudantV1.IndexDefinition = IndexDefinition;
|
|
9719
|
-
/**
|
|
9961
|
+
/**
|
|
9962
|
+
* Schema for indexed fields for use with declarative JSON query.
|
|
9963
|
+
*
|
|
9964
|
+
* This type supports additional properties of type string. Schema for sort direction.
|
|
9965
|
+
*/
|
|
9720
9966
|
class IndexField {
|
|
9721
9967
|
/** Name of the field. */
|
|
9722
9968
|
name;
|
|
@@ -9780,7 +10026,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9780
10026
|
})(Type = Constants.Type || (Constants.Type = {}));
|
|
9781
10027
|
})(Constants = IndexField.Constants || (IndexField.Constants = {}));
|
|
9782
10028
|
})(IndexField = CloudantV1.IndexField || (CloudantV1.IndexField = {}));
|
|
9783
|
-
/**
|
|
10029
|
+
/**
|
|
10030
|
+
* Schema for information about an index.
|
|
10031
|
+
*/
|
|
9784
10032
|
class IndexInformation {
|
|
9785
10033
|
/** Design document ID including a `_design/` prefix. */
|
|
9786
10034
|
ddoc;
|
|
@@ -9854,7 +10102,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9854
10102
|
})(Type = Constants.Type || (Constants.Type = {}));
|
|
9855
10103
|
})(Constants = IndexInformation.Constants || (IndexInformation.Constants = {}));
|
|
9856
10104
|
})(IndexInformation = CloudantV1.IndexInformation || (CloudantV1.IndexInformation = {}));
|
|
9857
|
-
/**
|
|
10105
|
+
/**
|
|
10106
|
+
* Schema for the result of creating an index.
|
|
10107
|
+
*/
|
|
9858
10108
|
class IndexResult {
|
|
9859
10109
|
/** Id of the design document the index was created in. */
|
|
9860
10110
|
id;
|
|
@@ -9907,7 +10157,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9907
10157
|
})(Result = Constants.Result || (Constants.Result = {}));
|
|
9908
10158
|
})(Constants = IndexResult.Constants || (IndexResult.Constants = {}));
|
|
9909
10159
|
})(IndexResult = CloudantV1.IndexResult || (CloudantV1.IndexResult = {}));
|
|
9910
|
-
/**
|
|
10160
|
+
/**
|
|
10161
|
+
* Schema for the text index default field configuration. The default field is used to index the text of all fields
|
|
10162
|
+
* within a document for use with the `$text` operator.
|
|
10163
|
+
*/
|
|
9911
10164
|
class IndexTextOperatorDefaultField {
|
|
9912
10165
|
/** Schema for a full text search analyzer. */
|
|
9913
10166
|
analyzer;
|
|
@@ -9941,7 +10194,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9941
10194
|
}
|
|
9942
10195
|
}
|
|
9943
10196
|
CloudantV1.IndexTextOperatorDefaultField = IndexTextOperatorDefaultField;
|
|
9944
|
-
/**
|
|
10197
|
+
/**
|
|
10198
|
+
* Schema for information about the indexes in a database.
|
|
10199
|
+
*/
|
|
9945
10200
|
class IndexesInformation {
|
|
9946
10201
|
/** Number of total rows. */
|
|
9947
10202
|
totalRows;
|
|
@@ -9975,7 +10230,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
9975
10230
|
}
|
|
9976
10231
|
}
|
|
9977
10232
|
CloudantV1.IndexesInformation = IndexesInformation;
|
|
9978
|
-
/**
|
|
10233
|
+
/**
|
|
10234
|
+
* Schema for information about known nodes and cluster membership.
|
|
10235
|
+
*/
|
|
9979
10236
|
class MembershipInformation {
|
|
9980
10237
|
/** List of nodes this node knows about, including the ones that are part of the cluster. */
|
|
9981
10238
|
allNodes;
|
|
@@ -10009,7 +10266,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10009
10266
|
}
|
|
10010
10267
|
}
|
|
10011
10268
|
CloudantV1.MembershipInformation = MembershipInformation;
|
|
10012
|
-
/**
|
|
10269
|
+
/**
|
|
10270
|
+
* Schema for an OK result.
|
|
10271
|
+
*/
|
|
10013
10272
|
class Ok {
|
|
10014
10273
|
/** ok. */
|
|
10015
10274
|
ok;
|
|
@@ -10035,7 +10294,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10035
10294
|
}
|
|
10036
10295
|
}
|
|
10037
10296
|
CloudantV1.Ok = Ok;
|
|
10038
|
-
/**
|
|
10297
|
+
/**
|
|
10298
|
+
* Schema for information about a database partition.
|
|
10299
|
+
*/
|
|
10039
10300
|
class PartitionInformation {
|
|
10040
10301
|
/** The name of the database. */
|
|
10041
10302
|
dbName;
|
|
@@ -10101,7 +10362,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10101
10362
|
}
|
|
10102
10363
|
}
|
|
10103
10364
|
CloudantV1.PartitionInformation = PartitionInformation;
|
|
10104
|
-
/**
|
|
10365
|
+
/**
|
|
10366
|
+
* Schema for information about the partition index count and limit in a database.
|
|
10367
|
+
*/
|
|
10105
10368
|
class PartitionInformationIndexes {
|
|
10106
10369
|
/** Total count of the partitioned indexes. */
|
|
10107
10370
|
count;
|
|
@@ -10143,7 +10406,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10143
10406
|
}
|
|
10144
10407
|
}
|
|
10145
10408
|
CloudantV1.PartitionInformationIndexes = PartitionInformationIndexes;
|
|
10146
|
-
/**
|
|
10409
|
+
/**
|
|
10410
|
+
* The count breakdown of partitioned indexes.
|
|
10411
|
+
*/
|
|
10147
10412
|
class PartitionInformationIndexesIndexes {
|
|
10148
10413
|
/** Number of partitioned search indexes. */
|
|
10149
10414
|
search;
|
|
@@ -10177,7 +10442,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10177
10442
|
}
|
|
10178
10443
|
}
|
|
10179
10444
|
CloudantV1.PartitionInformationIndexesIndexes = PartitionInformationIndexesIndexes;
|
|
10180
|
-
/**
|
|
10445
|
+
/**
|
|
10446
|
+
* The size of active and external data, in bytes.
|
|
10447
|
+
*/
|
|
10181
10448
|
class PartitionInformationSizes {
|
|
10182
10449
|
/** The size of live data inside the database, in bytes. */
|
|
10183
10450
|
active;
|
|
@@ -10211,7 +10478,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10211
10478
|
}
|
|
10212
10479
|
}
|
|
10213
10480
|
CloudantV1.PartitionInformationSizes = PartitionInformationSizes;
|
|
10214
|
-
/**
|
|
10481
|
+
/**
|
|
10482
|
+
* Number of partitioned indexes by type.
|
|
10483
|
+
*/
|
|
10215
10484
|
class PartitionedIndexesDetailedInformation {
|
|
10216
10485
|
/** Number of partitioned indexes of search type. */
|
|
10217
10486
|
search;
|
|
@@ -10245,7 +10514,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10245
10514
|
}
|
|
10246
10515
|
}
|
|
10247
10516
|
CloudantV1.PartitionedIndexesDetailedInformation = PartitionedIndexesDetailedInformation;
|
|
10248
|
-
/**
|
|
10517
|
+
/**
|
|
10518
|
+
* Information about database's partitioned indexes.
|
|
10519
|
+
*/
|
|
10249
10520
|
class PartitionedIndexesInformation {
|
|
10250
10521
|
/** Total number of partitioned indexes in the database. */
|
|
10251
10522
|
count;
|
|
@@ -10287,7 +10558,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10287
10558
|
}
|
|
10288
10559
|
}
|
|
10289
10560
|
CloudantV1.PartitionedIndexesInformation = PartitionedIndexesInformation;
|
|
10290
|
-
/**
|
|
10561
|
+
/**
|
|
10562
|
+
* Request parameters to use during target database creation.
|
|
10563
|
+
*/
|
|
10291
10564
|
class ReplicationCreateTargetParameters {
|
|
10292
10565
|
/** Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it
|
|
10293
10566
|
* cannot be changed by the user.
|
|
@@ -10331,7 +10604,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10331
10604
|
}
|
|
10332
10605
|
}
|
|
10333
10606
|
CloudantV1.ReplicationCreateTargetParameters = ReplicationCreateTargetParameters;
|
|
10334
|
-
/**
|
|
10607
|
+
/**
|
|
10608
|
+
* Schema for a replication source or target database.
|
|
10609
|
+
*/
|
|
10335
10610
|
class ReplicationDatabase {
|
|
10336
10611
|
/** Schema for replication source or target database authentication. */
|
|
10337
10612
|
auth;
|
|
@@ -10373,7 +10648,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10373
10648
|
}
|
|
10374
10649
|
}
|
|
10375
10650
|
CloudantV1.ReplicationDatabase = ReplicationDatabase;
|
|
10376
|
-
/**
|
|
10651
|
+
/**
|
|
10652
|
+
* Schema for replication source or target database authentication.
|
|
10653
|
+
*/
|
|
10377
10654
|
class ReplicationDatabaseAuth {
|
|
10378
10655
|
/** Schema for basic authentication of replication source or target database. */
|
|
10379
10656
|
basic;
|
|
@@ -10407,7 +10684,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10407
10684
|
}
|
|
10408
10685
|
}
|
|
10409
10686
|
CloudantV1.ReplicationDatabaseAuth = ReplicationDatabaseAuth;
|
|
10410
|
-
/**
|
|
10687
|
+
/**
|
|
10688
|
+
* Schema for basic authentication of replication source or target database.
|
|
10689
|
+
*/
|
|
10411
10690
|
class ReplicationDatabaseAuthBasic {
|
|
10412
10691
|
/** The password associated with the username. */
|
|
10413
10692
|
password;
|
|
@@ -10441,7 +10720,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10441
10720
|
}
|
|
10442
10721
|
}
|
|
10443
10722
|
CloudantV1.ReplicationDatabaseAuthBasic = ReplicationDatabaseAuthBasic;
|
|
10444
|
-
/**
|
|
10723
|
+
/**
|
|
10724
|
+
* Schema for an IAM API key for replication database authentication.
|
|
10725
|
+
*/
|
|
10445
10726
|
class ReplicationDatabaseAuthIam {
|
|
10446
10727
|
/** IAM API key. */
|
|
10447
10728
|
apiKey;
|
|
@@ -10467,7 +10748,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10467
10748
|
}
|
|
10468
10749
|
}
|
|
10469
10750
|
CloudantV1.ReplicationDatabaseAuthIam = ReplicationDatabaseAuthIam;
|
|
10470
|
-
/**
|
|
10751
|
+
/**
|
|
10752
|
+
* Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other.
|
|
10753
|
+
*
|
|
10754
|
+
* This type supports additional properties of type any.
|
|
10755
|
+
*/
|
|
10471
10756
|
class ReplicationDocument {
|
|
10472
10757
|
/** Schema for a map of attachment name to attachment metadata. */
|
|
10473
10758
|
_attachments;
|
|
@@ -10540,13 +10825,19 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10540
10825
|
* combination operator takes a single argument. The argument is either another selector, or an array of selectors.
|
|
10541
10826
|
* * Condition operators: are specific to a field, and are used to evaluate the value stored in that field. For
|
|
10542
10827
|
* instance, the basic `$eq` operator matches when the specified field contains a value that is equal to the
|
|
10543
|
-
* supplied argument.
|
|
10544
|
-
*
|
|
10828
|
+
* supplied argument.
|
|
10829
|
+
*
|
|
10830
|
+
* It is important for query performance to use appropriate selectors:
|
|
10545
10831
|
* * Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` (but not `$ne`) can be used as the
|
|
10546
10832
|
* basis of a query. You should include at least one of these in a selector.
|
|
10833
|
+
* * Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be answered from an index. For query
|
|
10834
|
+
* selectors use these operators in conjunction with equality operators or create and use a partial index to reduce
|
|
10835
|
+
* the number of documents that will need to be scanned.
|
|
10836
|
+
*
|
|
10837
|
+
* See [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)for a list of all available
|
|
10838
|
+
* combination and conditional operators.
|
|
10547
10839
|
*
|
|
10548
|
-
* For further reference see
|
|
10549
|
-
* [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
10840
|
+
* For further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax).
|
|
10550
10841
|
*/
|
|
10551
10842
|
selector;
|
|
10552
10843
|
/** Start the replication at a specific sequence value. */
|
|
@@ -10896,7 +11187,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10896
11187
|
}
|
|
10897
11188
|
}
|
|
10898
11189
|
CloudantV1.ReplicationDocument = ReplicationDocument;
|
|
10899
|
-
/**
|
|
11190
|
+
/**
|
|
11191
|
+
* Schema for list of revision information.
|
|
11192
|
+
*/
|
|
10900
11193
|
class Revisions {
|
|
10901
11194
|
/** Array of valid revision IDs, in reverse order (latest first). */
|
|
10902
11195
|
ids;
|
|
@@ -10930,7 +11223,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10930
11223
|
}
|
|
10931
11224
|
}
|
|
10932
11225
|
CloudantV1.Revisions = Revisions;
|
|
10933
|
-
/**
|
|
11226
|
+
/**
|
|
11227
|
+
* Schema for information about missing revs and possible ancestors.
|
|
11228
|
+
*/
|
|
10934
11229
|
class RevsDiff {
|
|
10935
11230
|
/** List of missing revisions. */
|
|
10936
11231
|
missing;
|
|
@@ -10964,7 +11259,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10964
11259
|
}
|
|
10965
11260
|
}
|
|
10966
11261
|
CloudantV1.RevsDiff = RevsDiff;
|
|
10967
|
-
/**
|
|
11262
|
+
/**
|
|
11263
|
+
* Schema for a listing of replication scheduler documents.
|
|
11264
|
+
*/
|
|
10968
11265
|
class SchedulerDocsResult {
|
|
10969
11266
|
/** Number of total rows. */
|
|
10970
11267
|
totalRows;
|
|
@@ -10998,7 +11295,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
10998
11295
|
}
|
|
10999
11296
|
}
|
|
11000
11297
|
CloudantV1.SchedulerDocsResult = SchedulerDocsResult;
|
|
11001
|
-
/**
|
|
11298
|
+
/**
|
|
11299
|
+
* Schema for a replication scheduler document.
|
|
11300
|
+
*/
|
|
11002
11301
|
class SchedulerDocument {
|
|
11003
11302
|
/** Database where replication document came from. */
|
|
11004
11303
|
database;
|
|
@@ -11147,7 +11446,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11147
11446
|
})(State = Constants.State || (Constants.State = {}));
|
|
11148
11447
|
})(Constants = SchedulerDocument.Constants || (SchedulerDocument.Constants = {}));
|
|
11149
11448
|
})(SchedulerDocument = CloudantV1.SchedulerDocument || (CloudantV1.SchedulerDocument = {}));
|
|
11150
|
-
/**
|
|
11449
|
+
/**
|
|
11450
|
+
* Schema for scheduler document information. A JSON object that may contain additional information about the state.
|
|
11451
|
+
* For error states this will contain an error field and string value.
|
|
11452
|
+
*/
|
|
11151
11453
|
class SchedulerInfo {
|
|
11152
11454
|
/** The count of changes not yet replicated. */
|
|
11153
11455
|
changesPending;
|
|
@@ -11245,7 +11547,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11245
11547
|
}
|
|
11246
11548
|
}
|
|
11247
11549
|
CloudantV1.SchedulerInfo = SchedulerInfo;
|
|
11248
|
-
/**
|
|
11550
|
+
/**
|
|
11551
|
+
* Schema for a replication scheduler job.
|
|
11552
|
+
*/
|
|
11249
11553
|
class SchedulerJob {
|
|
11250
11554
|
/** Replication document database. */
|
|
11251
11555
|
database;
|
|
@@ -11353,7 +11657,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11353
11657
|
}
|
|
11354
11658
|
}
|
|
11355
11659
|
CloudantV1.SchedulerJob = SchedulerJob;
|
|
11356
|
-
/**
|
|
11660
|
+
/**
|
|
11661
|
+
* Schema for a replication scheduler job event.
|
|
11662
|
+
*/
|
|
11357
11663
|
class SchedulerJobEvent {
|
|
11358
11664
|
/** Reason for current state of event. */
|
|
11359
11665
|
reason;
|
|
@@ -11395,7 +11701,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11395
11701
|
}
|
|
11396
11702
|
}
|
|
11397
11703
|
CloudantV1.SchedulerJobEvent = SchedulerJobEvent;
|
|
11398
|
-
/**
|
|
11704
|
+
/**
|
|
11705
|
+
* Schema for a listing of replication scheduler jobs.
|
|
11706
|
+
*/
|
|
11399
11707
|
class SchedulerJobsResult {
|
|
11400
11708
|
/** Number of total rows. */
|
|
11401
11709
|
totalRows;
|
|
@@ -11429,7 +11737,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11429
11737
|
}
|
|
11430
11738
|
}
|
|
11431
11739
|
CloudantV1.SchedulerJobsResult = SchedulerJobsResult;
|
|
11432
|
-
/**
|
|
11740
|
+
/**
|
|
11741
|
+
* Schema for the output of testing search analyzer tokenization.
|
|
11742
|
+
*/
|
|
11433
11743
|
class SearchAnalyzeResult {
|
|
11434
11744
|
/** tokens. */
|
|
11435
11745
|
tokens;
|
|
@@ -11455,7 +11765,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11455
11765
|
}
|
|
11456
11766
|
}
|
|
11457
11767
|
CloudantV1.SearchAnalyzeResult = SearchAnalyzeResult;
|
|
11458
|
-
/**
|
|
11768
|
+
/**
|
|
11769
|
+
* Schema for a search index definition.
|
|
11770
|
+
*/
|
|
11459
11771
|
class SearchIndexDefinition {
|
|
11460
11772
|
/** Schema for a search analyzer configuration. */
|
|
11461
11773
|
analyzer;
|
|
@@ -11508,7 +11820,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11508
11820
|
}
|
|
11509
11821
|
}
|
|
11510
11822
|
CloudantV1.SearchIndexDefinition = SearchIndexDefinition;
|
|
11511
|
-
/**
|
|
11823
|
+
/**
|
|
11824
|
+
* Schema for metadata information about a search index.
|
|
11825
|
+
*/
|
|
11512
11826
|
class SearchIndexInfo {
|
|
11513
11827
|
/** The committed sequence identifier. */
|
|
11514
11828
|
committedSeq;
|
|
@@ -11574,7 +11888,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11574
11888
|
}
|
|
11575
11889
|
}
|
|
11576
11890
|
CloudantV1.SearchIndexInfo = SearchIndexInfo;
|
|
11577
|
-
/**
|
|
11891
|
+
/**
|
|
11892
|
+
* Schema for search index information.
|
|
11893
|
+
*/
|
|
11578
11894
|
class SearchInfoResult {
|
|
11579
11895
|
/** The name of the search index prefixed by the design document ID where the index is stored. */
|
|
11580
11896
|
name;
|
|
@@ -11608,7 +11924,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11608
11924
|
}
|
|
11609
11925
|
}
|
|
11610
11926
|
CloudantV1.SearchInfoResult = SearchInfoResult;
|
|
11611
|
-
/**
|
|
11927
|
+
/**
|
|
11928
|
+
* Schema for the result of a query search operation.
|
|
11929
|
+
*/
|
|
11612
11930
|
class SearchResult {
|
|
11613
11931
|
/** Number of total rows. */
|
|
11614
11932
|
totalRows;
|
|
@@ -11684,7 +12002,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11684
12002
|
}
|
|
11685
12003
|
}
|
|
11686
12004
|
CloudantV1.SearchResult = SearchResult;
|
|
11687
|
-
/**
|
|
12005
|
+
/**
|
|
12006
|
+
* Schema for the result of a query search operation.
|
|
12007
|
+
*/
|
|
11688
12008
|
class SearchResultProperties {
|
|
11689
12009
|
/** Number of total rows. */
|
|
11690
12010
|
totalRows;
|
|
@@ -11752,7 +12072,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11752
12072
|
}
|
|
11753
12073
|
}
|
|
11754
12074
|
CloudantV1.SearchResultProperties = SearchResultProperties;
|
|
11755
|
-
/**
|
|
12075
|
+
/**
|
|
12076
|
+
* Schema for a row of the result of a query search operation.
|
|
12077
|
+
*/
|
|
11756
12078
|
class SearchResultRow {
|
|
11757
12079
|
/** Schema for a document. */
|
|
11758
12080
|
doc;
|
|
@@ -11804,7 +12126,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11804
12126
|
}
|
|
11805
12127
|
}
|
|
11806
12128
|
CloudantV1.SearchResultRow = SearchResultRow;
|
|
11807
|
-
/**
|
|
12129
|
+
/**
|
|
12130
|
+
* Schema for a security document.
|
|
12131
|
+
*/
|
|
11808
12132
|
class Security {
|
|
11809
12133
|
/** Schema for names and roles to map to a database permission. */
|
|
11810
12134
|
admins;
|
|
@@ -11854,7 +12178,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11854
12178
|
}
|
|
11855
12179
|
}
|
|
11856
12180
|
CloudantV1.Security = Security;
|
|
11857
|
-
/**
|
|
12181
|
+
/**
|
|
12182
|
+
* Schema for names and roles to map to a database permission.
|
|
12183
|
+
*/
|
|
11858
12184
|
class SecurityObject {
|
|
11859
12185
|
/** List of usernames. */
|
|
11860
12186
|
names;
|
|
@@ -11888,7 +12214,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11888
12214
|
}
|
|
11889
12215
|
}
|
|
11890
12216
|
CloudantV1.SecurityObject = SecurityObject;
|
|
11891
|
-
/**
|
|
12217
|
+
/**
|
|
12218
|
+
* Schema for extra information on the selector.
|
|
12219
|
+
*/
|
|
11892
12220
|
class SelectorHint {
|
|
11893
12221
|
/** A list of fields in the given selector that can be used to restrict the query. */
|
|
11894
12222
|
indexableFields;
|
|
@@ -11941,7 +12269,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11941
12269
|
})(Type = Constants.Type || (Constants.Type = {}));
|
|
11942
12270
|
})(Constants = SelectorHint.Constants || (SelectorHint.Constants = {}));
|
|
11943
12271
|
})(SelectorHint = CloudantV1.SelectorHint || (CloudantV1.SelectorHint = {}));
|
|
11944
|
-
/**
|
|
12272
|
+
/**
|
|
12273
|
+
* Schema for information about the server instance.
|
|
12274
|
+
*/
|
|
11945
12275
|
class ServerInformation {
|
|
11946
12276
|
/** Welcome message. */
|
|
11947
12277
|
couchdb;
|
|
@@ -11999,7 +12329,11 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
11999
12329
|
}
|
|
12000
12330
|
}
|
|
12001
12331
|
CloudantV1.ServerInformation = ServerInformation;
|
|
12002
|
-
/**
|
|
12332
|
+
/**
|
|
12333
|
+
* Schema for server vendor information.
|
|
12334
|
+
*
|
|
12335
|
+
* This type supports additional properties of type string.
|
|
12336
|
+
*/
|
|
12003
12337
|
class ServerVendor {
|
|
12004
12338
|
/** Vendor name. */
|
|
12005
12339
|
name;
|
|
@@ -12061,7 +12395,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12061
12395
|
}
|
|
12062
12396
|
}
|
|
12063
12397
|
CloudantV1.ServerVendor = ServerVendor;
|
|
12064
|
-
/**
|
|
12398
|
+
/**
|
|
12399
|
+
* Schema for session authentication information.
|
|
12400
|
+
*/
|
|
12065
12401
|
class SessionAuthentication {
|
|
12066
12402
|
/** authenticated. */
|
|
12067
12403
|
authenticated;
|
|
@@ -12103,7 +12439,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12103
12439
|
}
|
|
12104
12440
|
}
|
|
12105
12441
|
CloudantV1.SessionAuthentication = SessionAuthentication;
|
|
12106
|
-
/**
|
|
12442
|
+
/**
|
|
12443
|
+
* Schema for information about a session.
|
|
12444
|
+
*/
|
|
12107
12445
|
class SessionInformation {
|
|
12108
12446
|
/** ok. */
|
|
12109
12447
|
ok;
|
|
@@ -12145,7 +12483,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12145
12483
|
}
|
|
12146
12484
|
}
|
|
12147
12485
|
CloudantV1.SessionInformation = SessionInformation;
|
|
12148
|
-
/**
|
|
12486
|
+
/**
|
|
12487
|
+
* Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy
|
|
12488
|
+
* of that shard.
|
|
12489
|
+
*/
|
|
12149
12490
|
class ShardsInformation {
|
|
12150
12491
|
/** Mapping of shard hash value range to a list of nodes. */
|
|
12151
12492
|
shards;
|
|
@@ -12171,10 +12512,12 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12171
12512
|
}
|
|
12172
12513
|
}
|
|
12173
12514
|
CloudantV1.ShardsInformation = ShardsInformation;
|
|
12174
|
-
/**
|
|
12515
|
+
/**
|
|
12516
|
+
* Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.
|
|
12517
|
+
*/
|
|
12175
12518
|
class ThroughputInformation {
|
|
12176
12519
|
/** A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global
|
|
12177
|
-
* queries/sec of provisioned throughput capacity.
|
|
12520
|
+
* queries/sec of provisioned throughput capacity. Not available for some plans.
|
|
12178
12521
|
*/
|
|
12179
12522
|
blocks;
|
|
12180
12523
|
/** Provisioned global queries capacity in operations per second. */
|
|
@@ -12223,7 +12566,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12223
12566
|
}
|
|
12224
12567
|
}
|
|
12225
12568
|
CloudantV1.ThroughputInformation = ThroughputInformation;
|
|
12226
|
-
/**
|
|
12569
|
+
/**
|
|
12570
|
+
* Schema for information about the up state of the server.
|
|
12571
|
+
*/
|
|
12227
12572
|
class UpInformation {
|
|
12228
12573
|
/** seeds. */
|
|
12229
12574
|
seeds;
|
|
@@ -12269,7 +12614,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12269
12614
|
})(Status = Constants.Status || (Constants.Status = {}));
|
|
12270
12615
|
})(Constants = UpInformation.Constants || (UpInformation.Constants = {}));
|
|
12271
12616
|
})(UpInformation = CloudantV1.UpInformation || (CloudantV1.UpInformation = {}));
|
|
12272
|
-
/**
|
|
12617
|
+
/**
|
|
12618
|
+
* Schema for an ability to tell if view is up-to-date without querying it.
|
|
12619
|
+
*/
|
|
12273
12620
|
class UpdatesPending {
|
|
12274
12621
|
/** Sum of shard copies with the least amount of work to do. */
|
|
12275
12622
|
minimum;
|
|
@@ -12313,7 +12660,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12313
12660
|
}
|
|
12314
12661
|
}
|
|
12315
12662
|
CloudantV1.UpdatesPending = UpdatesPending;
|
|
12316
|
-
/**
|
|
12663
|
+
/**
|
|
12664
|
+
* Schema for the user context of a session.
|
|
12665
|
+
*/
|
|
12317
12666
|
class UserContext {
|
|
12318
12667
|
/** Database name in the context of the provided operation. */
|
|
12319
12668
|
db;
|
|
@@ -12372,7 +12721,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12372
12721
|
})(Roles = Constants.Roles || (Constants.Roles = {}));
|
|
12373
12722
|
})(Constants = UserContext.Constants || (UserContext.Constants = {}));
|
|
12374
12723
|
})(UserContext = CloudantV1.UserContext || (CloudantV1.UserContext = {}));
|
|
12375
|
-
/**
|
|
12724
|
+
/**
|
|
12725
|
+
* Schema for a set of uuids generated by the server.
|
|
12726
|
+
*/
|
|
12376
12727
|
class UuidsResult {
|
|
12377
12728
|
/** uuids. */
|
|
12378
12729
|
uuids;
|
|
@@ -12398,7 +12749,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12398
12749
|
}
|
|
12399
12750
|
}
|
|
12400
12751
|
CloudantV1.UuidsResult = UuidsResult;
|
|
12401
|
-
/**
|
|
12752
|
+
/**
|
|
12753
|
+
* Schema for the results of a queries view operation.
|
|
12754
|
+
*/
|
|
12402
12755
|
class ViewQueriesResult {
|
|
12403
12756
|
/** An array of result objects - one for each query. Each result object contains the same fields as the response
|
|
12404
12757
|
* to a regular view request.
|
|
@@ -12426,7 +12779,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12426
12779
|
}
|
|
12427
12780
|
}
|
|
12428
12781
|
CloudantV1.ViewQueriesResult = ViewQueriesResult;
|
|
12429
|
-
/**
|
|
12782
|
+
/**
|
|
12783
|
+
* Schema for a query view operation.
|
|
12784
|
+
*/
|
|
12430
12785
|
class ViewQuery {
|
|
12431
12786
|
/** Parameter to specify whether to include the encoding information in attachment stubs if the particular
|
|
12432
12787
|
* attachment is compressed.
|
|
@@ -12474,6 +12829,10 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12474
12829
|
keys;
|
|
12475
12830
|
/** Parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce
|
|
12476
12831
|
* function is defined.
|
|
12832
|
+
*
|
|
12833
|
+
* A default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.
|
|
12834
|
+
*
|
|
12835
|
+
* Be aware that `include_docs=true` can only be used with `map` views.
|
|
12477
12836
|
*/
|
|
12478
12837
|
reduce;
|
|
12479
12838
|
/** Query parameter to specify whether use the same replica of the index on each request. The default value
|
|
@@ -12643,7 +13002,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12643
13002
|
})(Update = Constants.Update || (Constants.Update = {}));
|
|
12644
13003
|
})(Constants = ViewQuery.Constants || (ViewQuery.Constants = {}));
|
|
12645
13004
|
})(ViewQuery = CloudantV1.ViewQuery || (CloudantV1.ViewQuery = {}));
|
|
12646
|
-
/**
|
|
13005
|
+
/**
|
|
13006
|
+
* Schema for the result of a query view operation.
|
|
13007
|
+
*/
|
|
12647
13008
|
class ViewResult {
|
|
12648
13009
|
/** Number of total rows. */
|
|
12649
13010
|
totalRows;
|
|
@@ -12685,7 +13046,9 @@ class CloudantV1 extends cloudantBaseService_1.default {
|
|
|
12685
13046
|
}
|
|
12686
13047
|
}
|
|
12687
13048
|
CloudantV1.ViewResult = ViewResult;
|
|
12688
|
-
/**
|
|
13049
|
+
/**
|
|
13050
|
+
* Schema for a row of a view result.
|
|
13051
|
+
*/
|
|
12689
13052
|
class ViewResultRow {
|
|
12690
13053
|
/** The cause of the error (if available). */
|
|
12691
13054
|
causedBy;
|