@ibm-cloud/cloudant 0.0.19 → 0.0.23
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 +30 -36
- package/auth/couchdbSessionAuthenticator.d.ts +7 -0
- package/auth/couchdbSessionAuthenticator.js +24 -3
- package/auth/couchdbSessionAuthenticator.js.map +1 -1
- package/auth/sessionTokenManager.js +3 -2
- package/auth/sessionTokenManager.js.map +1 -1
- package/cloudant/v1.d.ts +143 -114
- package/cloudant/v1.js +48 -86
- package/cloudant/v1.js.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/lib/cloudantBaseService.d.ts +1 -1
- package/lib/cloudantBaseService.js +37 -27
- package/lib/cloudantBaseService.js.map +1 -1
- package/lib/common.js +2 -2
- package/lib/common.js.map +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.d.ts +1 -1
- package/lib/getAuthenticatorFromEnvCloudantExtension.js +1 -2
- package/lib/getAuthenticatorFromEnvCloudantExtension.js.map +1 -1
- package/package.json +3 -3
package/cloudant/v1.js
CHANGED
|
@@ -40,9 +40,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
40
40
|
};
|
|
41
41
|
return __assign.apply(this, arguments);
|
|
42
42
|
};
|
|
43
|
-
/**
|
|
44
|
-
* IBM OpenAPI SDK Code Generator Version: 3.37.1-66e80f2e-20210813-202232
|
|
45
|
-
*/
|
|
46
43
|
var extend = require("extend");
|
|
47
44
|
var ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
|
|
48
45
|
var common_1 = require("../lib/common");
|
|
@@ -50,6 +47,8 @@ var cloudantBaseService_1 = require("../lib/cloudantBaseService");
|
|
|
50
47
|
var getAuthenticatorFromEnvCloudantExtension_1 = require("../lib/getAuthenticatorFromEnvCloudantExtension");
|
|
51
48
|
/**
|
|
52
49
|
* NoSQL database based on Apache CouchDB
|
|
50
|
+
*
|
|
51
|
+
* See: https://cloud.ibm.com/docs/services/Cloudant/
|
|
53
52
|
*/
|
|
54
53
|
var CloudantV1 = /** @class */ (function (_super) {
|
|
55
54
|
__extends(CloudantV1, _super);
|
|
@@ -95,7 +94,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
95
94
|
options.serviceName = this.DEFAULT_SERVICE_NAME;
|
|
96
95
|
}
|
|
97
96
|
if (!options.authenticator) {
|
|
98
|
-
options.authenticator = (0, getAuthenticatorFromEnvCloudantExtension_1.
|
|
97
|
+
options.authenticator = (0, getAuthenticatorFromEnvCloudantExtension_1.default)(options.serviceName);
|
|
99
98
|
}
|
|
100
99
|
var service = new CloudantV1(options);
|
|
101
100
|
service.configureService(options.serviceName);
|
|
@@ -350,17 +349,18 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
350
349
|
* key order.
|
|
351
350
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
352
351
|
* @param {string} [params.filter] - Query parameter to specify a filter function from a design document that will
|
|
353
|
-
* filter the changes stream emitting only filtered events.
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
* - Returns changes
|
|
358
|
-
* -
|
|
359
|
-
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
363
|
-
* `
|
|
352
|
+
* filter the changes stream emitting only filtered events. For example: `design_doc/filtername`.
|
|
353
|
+
*
|
|
354
|
+
* Additionally, some keywords are reserved for built-in filters:
|
|
355
|
+
*
|
|
356
|
+
* * `_design` - Returns only changes to design documents.
|
|
357
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one specified in
|
|
358
|
+
* `doc_ids` request body parameter.
|
|
359
|
+
* * `_selector` - Returns changes for documents that match the `selector`
|
|
360
|
+
* request body parameter. The selector syntax is the same as used for
|
|
361
|
+
* `_find`.
|
|
362
|
+
* * `_view` - Returns changes for documents that match an existing map
|
|
363
|
+
* function in the view specified by the query parameter `view`.
|
|
364
364
|
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
365
365
|
* line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
|
|
366
366
|
* to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
|
|
@@ -483,17 +483,18 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
483
483
|
* key order.
|
|
484
484
|
* @param {string} [params.feed] - Query parameter to specify the changes feed type.
|
|
485
485
|
* @param {string} [params.filter] - Query parameter to specify a filter function from a design document that will
|
|
486
|
-
* filter the changes stream emitting only filtered events.
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
* - Returns changes
|
|
491
|
-
* -
|
|
492
|
-
*
|
|
493
|
-
*
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
* `
|
|
486
|
+
* filter the changes stream emitting only filtered events. For example: `design_doc/filtername`.
|
|
487
|
+
*
|
|
488
|
+
* Additionally, some keywords are reserved for built-in filters:
|
|
489
|
+
*
|
|
490
|
+
* * `_design` - Returns only changes to design documents.
|
|
491
|
+
* * `_doc_ids` - Returns changes for documents with an ID matching one specified in
|
|
492
|
+
* `doc_ids` request body parameter.
|
|
493
|
+
* * `_selector` - Returns changes for documents that match the `selector`
|
|
494
|
+
* request body parameter. The selector syntax is the same as used for
|
|
495
|
+
* `_find`.
|
|
496
|
+
* * `_view` - Returns changes for documents that match an existing map
|
|
497
|
+
* function in the view specified by the query parameter `view`.
|
|
497
498
|
* @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
|
|
498
499
|
* line is sent in the results. Only applicable for longpoll, continuous, and eventsource feeds. Overrides any timeout
|
|
499
500
|
* to keep the feed alive indefinitely. May also be `true` to use default value of 60000.
|
|
@@ -518,7 +519,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
518
519
|
* @param {string} [params.view] - Query parameter to specify a view function as a filter. Documents pass the filter
|
|
519
520
|
* if the view's map function emits at least one record for them.
|
|
520
521
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
521
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
522
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
522
523
|
*/
|
|
523
524
|
CloudantV1.prototype.postChangesAsStream = function (params) {
|
|
524
525
|
var _params = __assign({}, params);
|
|
@@ -1007,7 +1008,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1007
1008
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
1008
1009
|
* @param {string} [params.startkey] - Schema for a document ID.
|
|
1009
1010
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1010
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1011
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1011
1012
|
*/
|
|
1012
1013
|
CloudantV1.prototype.postAllDocsAsStream = function (params) {
|
|
1013
1014
|
var _params = __assign({}, params);
|
|
@@ -1110,7 +1111,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1110
1111
|
* individual view query to be executed. The field names and their meaning are the same as the query parameters of a
|
|
1111
1112
|
* regular `/_all_docs` request.
|
|
1112
1113
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1113
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1114
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1114
1115
|
*/
|
|
1115
1116
|
CloudantV1.prototype.postAllDocsQueriesAsStream = function (params) {
|
|
1116
1117
|
var _params = __assign({}, params);
|
|
@@ -1257,7 +1258,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1257
1258
|
* @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
|
|
1258
1259
|
* revisions.
|
|
1259
1260
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1260
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1261
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1261
1262
|
*/
|
|
1262
1263
|
CloudantV1.prototype.postBulkGetAsMixed = function (params) {
|
|
1263
1264
|
var _params = __assign({}, params);
|
|
@@ -1314,7 +1315,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1314
1315
|
* @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
|
|
1315
1316
|
* revisions.
|
|
1316
1317
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1317
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1318
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1318
1319
|
*/
|
|
1319
1320
|
CloudantV1.prototype.postBulkGetAsRelated = function (params) {
|
|
1320
1321
|
var _params = __assign({}, params);
|
|
@@ -1371,7 +1372,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1371
1372
|
* @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
|
|
1372
1373
|
* revisions.
|
|
1373
1374
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1374
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1375
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1375
1376
|
*/
|
|
1376
1377
|
CloudantV1.prototype.postBulkGetAsStream = function (params) {
|
|
1377
1378
|
var _params = __assign({}, params);
|
|
@@ -1565,7 +1566,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1565
1566
|
* @param {boolean} [params.revsInfo] - Query parameter to specify whether to includes detailed information for all
|
|
1566
1567
|
* known document revisions.
|
|
1567
1568
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1568
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1569
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1569
1570
|
*/
|
|
1570
1571
|
CloudantV1.prototype.getDocumentAsMixed = function (params) {
|
|
1571
1572
|
var _params = __assign({}, params);
|
|
@@ -1639,7 +1640,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1639
1640
|
* @param {boolean} [params.revsInfo] - Query parameter to specify whether to includes detailed information for all
|
|
1640
1641
|
* known document revisions.
|
|
1641
1642
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1642
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1643
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1643
1644
|
*/
|
|
1644
1645
|
CloudantV1.prototype.getDocumentAsRelated = function (params) {
|
|
1645
1646
|
var _params = __assign({}, params);
|
|
@@ -1713,7 +1714,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
1713
1714
|
* @param {boolean} [params.revsInfo] - Query parameter to specify whether to includes detailed information for all
|
|
1714
1715
|
* known document revisions.
|
|
1715
1716
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
1716
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
1717
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
1717
1718
|
*/
|
|
1718
1719
|
CloudantV1.prototype.getDocumentAsStream = function (params) {
|
|
1719
1720
|
var _params = __assign({}, params);
|
|
@@ -2348,7 +2349,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2348
2349
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
2349
2350
|
* to responding to the user.
|
|
2350
2351
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2351
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
2352
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2352
2353
|
*/
|
|
2353
2354
|
CloudantV1.prototype.postViewAsStream = function (params) {
|
|
2354
2355
|
var _params = __assign({}, params);
|
|
@@ -2464,7 +2465,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2464
2465
|
* view query to be executed. The field names and their meaning are the same as the query parameters of a regular view
|
|
2465
2466
|
* request.
|
|
2466
2467
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2467
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
2468
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2468
2469
|
*/
|
|
2469
2470
|
CloudantV1.prototype.postViewQueriesAsStream = function (params) {
|
|
2470
2471
|
var _params = __assign({}, params);
|
|
@@ -2646,7 +2647,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2646
2647
|
* @param {string[]} [params.keys] - Schema for a list of document IDs.
|
|
2647
2648
|
* @param {string} [params.startkey] - Schema for a document ID.
|
|
2648
2649
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2649
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
2650
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2650
2651
|
*/
|
|
2651
2652
|
CloudantV1.prototype.postPartitionAllDocsAsStream = function (params) {
|
|
2652
2653
|
var _params = __assign({}, params);
|
|
@@ -2812,7 +2813,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
2812
2813
|
* Fields that are used for sorting must be indexed by the same indexer that is used for the search query.
|
|
2813
2814
|
* @param {string} [params.stale] - Do not wait for the index to finish building to return results.
|
|
2814
2815
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
2815
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
2816
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
2816
2817
|
*/
|
|
2817
2818
|
CloudantV1.prototype.postPartitionSearchAsStream = function (params) {
|
|
2818
2819
|
var _params = __assign({}, params);
|
|
@@ -3005,7 +3006,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3005
3006
|
* @param {string} [params.update] - Parameter to specify whether or not the view in question should be updated prior
|
|
3006
3007
|
* to responding to the user.
|
|
3007
3008
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3008
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
3009
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3009
3010
|
*/
|
|
3010
3011
|
CloudantV1.prototype.postPartitionViewAsStream = function (params) {
|
|
3011
3012
|
var _params = __assign({}, params);
|
|
@@ -3205,7 +3206,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3205
3206
|
* @param {string[]} [params.useIndex] - Use this option to identify a specific index for query to run against, rather
|
|
3206
3207
|
* than by using the IBM Cloudant Query algorithm to find the best index.
|
|
3207
3208
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3208
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
3209
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3209
3210
|
*/
|
|
3210
3211
|
CloudantV1.prototype.postPartitionFindAsStream = function (params) {
|
|
3211
3212
|
var _params = __assign({}, params);
|
|
@@ -3500,7 +3501,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3500
3501
|
* that many replicas before it is returned in the results. The request will take more time than using only the
|
|
3501
3502
|
* document that is stored locally with the index.
|
|
3502
3503
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3503
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
3504
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3504
3505
|
*/
|
|
3505
3506
|
CloudantV1.prototype.postFindAsStream = function (params) {
|
|
3506
3507
|
var _params = __assign({}, params);
|
|
@@ -3888,7 +3889,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
3888
3889
|
* objects. The field names of the JSON objects are names for ranges. The values are strings that describe the range,
|
|
3889
3890
|
* for example "[0 TO 10]". This option is only available when making global queries.
|
|
3890
3891
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
3891
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
3892
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
3892
3893
|
*/
|
|
3893
3894
|
CloudantV1.prototype.postSearchAsStream = function (params) {
|
|
3894
3895
|
var _params = __assign({}, params);
|
|
@@ -4122,7 +4123,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
4122
4123
|
* @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
|
|
4123
4124
|
* returning results.
|
|
4124
4125
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
4125
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
4126
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
4126
4127
|
*/
|
|
4127
4128
|
CloudantV1.prototype.getGeoAsStream = function (params) {
|
|
4128
4129
|
var _params = __assign({}, params);
|
|
@@ -5063,7 +5064,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
5063
5064
|
* implementation of resumable downloads and skippable streams. This is available for all attachments inside CouchDB.
|
|
5064
5065
|
* @param {string} [params.rev] - Query parameter to specify a document revision.
|
|
5065
5066
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5066
|
-
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream
|
|
5067
|
+
* @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
|
|
5067
5068
|
*/
|
|
5068
5069
|
CloudantV1.prototype.getAttachment = function (params) {
|
|
5069
5070
|
var _params = __assign({}, params);
|
|
@@ -5352,45 +5353,6 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
5352
5353
|
/*************************
|
|
5353
5354
|
* databaseDetails
|
|
5354
5355
|
************************/
|
|
5355
|
-
/**
|
|
5356
|
-
* Query which document revisions are missing from the database.
|
|
5357
|
-
*
|
|
5358
|
-
* Given a list of document revisions, returns the document revisions that do not exist in the database.
|
|
5359
|
-
*
|
|
5360
|
-
* @param {Object} params - The parameters to send to the service.
|
|
5361
|
-
* @param {string} params.db - Path parameter to specify the database name.
|
|
5362
|
-
* @param {JsonObject} params.documentRevisions - HTTP request body for postMissingRevs and postRevsDiff.
|
|
5363
|
-
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5364
|
-
* @returns {Promise<CloudantV1.Response<CloudantV1.MissingRevsResult>>}
|
|
5365
|
-
*/
|
|
5366
|
-
CloudantV1.prototype.postMissingRevs = function (params) {
|
|
5367
|
-
var _params = __assign({}, params);
|
|
5368
|
-
var requiredParams = ['db', 'documentRevisions'];
|
|
5369
|
-
var missingParams = (0, ibm_cloud_sdk_core_1.getMissingParams)(_params, requiredParams);
|
|
5370
|
-
if (missingParams) {
|
|
5371
|
-
return Promise.reject(missingParams);
|
|
5372
|
-
}
|
|
5373
|
-
var body = _params.documentRevisions;
|
|
5374
|
-
var path = {
|
|
5375
|
-
'db': _params.db,
|
|
5376
|
-
};
|
|
5377
|
-
var sdkHeaders = (0, common_1.getSdkHeaders)(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postMissingRevs');
|
|
5378
|
-
var parameters = {
|
|
5379
|
-
options: {
|
|
5380
|
-
url: '/{db}/_missing_revs',
|
|
5381
|
-
method: 'POST',
|
|
5382
|
-
body: body,
|
|
5383
|
-
path: path,
|
|
5384
|
-
},
|
|
5385
|
-
defaultOptions: extend(true, {}, this.baseOptions, {
|
|
5386
|
-
headers: extend(true, sdkHeaders, {
|
|
5387
|
-
'Accept': 'application/json',
|
|
5388
|
-
'Content-Type': 'application/json',
|
|
5389
|
-
}, _params.headers),
|
|
5390
|
-
}),
|
|
5391
|
-
};
|
|
5392
|
-
return this.createRequest(parameters);
|
|
5393
|
-
};
|
|
5394
5356
|
/**
|
|
5395
5357
|
* Query the document revisions and possible ancestors missing from the database.
|
|
5396
5358
|
*
|
|
@@ -5400,7 +5362,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
5400
5362
|
*
|
|
5401
5363
|
* @param {Object} params - The parameters to send to the service.
|
|
5402
5364
|
* @param {string} params.db - Path parameter to specify the database name.
|
|
5403
|
-
* @param {JsonObject} params.documentRevisions - HTTP request body for
|
|
5365
|
+
* @param {JsonObject} params.documentRevisions - HTTP request body for operations with Document revisions.
|
|
5404
5366
|
* @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
|
|
5405
5367
|
* @returns {Promise<CloudantV1.Response<CloudantV1.JsonObject>>}
|
|
5406
5368
|
*/
|
|
@@ -5676,7 +5638,7 @@ var CloudantV1 = /** @class */ (function (_super) {
|
|
|
5676
5638
|
CloudantV1.DEFAULT_SERVICE_URL = 'http://localhost:5984';
|
|
5677
5639
|
CloudantV1.DEFAULT_SERVICE_NAME = 'cloudant';
|
|
5678
5640
|
return CloudantV1;
|
|
5679
|
-
}(cloudantBaseService_1.
|
|
5641
|
+
}(cloudantBaseService_1.default));
|
|
5680
5642
|
/*************************
|
|
5681
5643
|
* interfaces
|
|
5682
5644
|
************************/
|