@ibm-cloud/cloudant 0.0.14 → 0.0.15

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/cloudant/v1.js CHANGED
@@ -22,13 +22,15 @@ var __extends = (this && this.__extends) || (function () {
22
22
  return extendStatics(d, b);
23
23
  };
24
24
  return function (d, b) {
25
+ if (typeof b !== "function" && b !== null)
26
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
27
  extendStatics(d, b);
26
28
  function __() { this.constructor = d; }
27
29
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
30
  };
29
31
  })();
30
32
  /**
31
- * IBM OpenAPI SDK Code Generator Version: 3.28.0-55613c9e-20210220-164656
33
+ * IBM OpenAPI SDK Code Generator Version: 3.30.0-bd714324-20210406-200538
32
34
  */
33
35
  var extend = require("extend");
34
36
  var ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
@@ -185,8 +187,8 @@ var CloudantV1 = /** @class */ (function (_super) {
185
187
  /**
186
188
  * Retrieve provisioned throughput capacity information.
187
189
  *
188
- * View the amount of provisioned throughput capacity allocated to an IBM Cloudant instance and what is the target
189
- * provisioned throughput capacity.
190
+ * View the amount of provisioned throughput capacity that is allocated to an IBM Cloudant instance and what is the
191
+ * target provisioned throughput capacity.
190
192
  *
191
193
  * @param {Object} [params] - The parameters to send to the service.
192
194
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -221,7 +223,7 @@ var CloudantV1 = /** @class */ (function (_super) {
221
223
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
222
224
  * @returns {Promise<CloudantV1.Response<CloudantV1.CapacityThroughputInformation>>}
223
225
  */
224
- CloudantV1.prototype.putCapacityThroughputInformation = function (params) {
226
+ CloudantV1.prototype.putCapacityThroughputConfiguration = function (params) {
225
227
  var _params = Object.assign({}, params);
226
228
  var requiredParams = ['blocks'];
227
229
  var missingParams = ibm_cloud_sdk_core_1.getMissingParams(_params, requiredParams);
@@ -231,7 +233,7 @@ var CloudantV1 = /** @class */ (function (_super) {
231
233
  var body = {
232
234
  'blocks': _params.blocks
233
235
  };
234
- var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'putCapacityThroughputInformation');
236
+ var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'putCapacityThroughputConfiguration');
235
237
  var parameters = {
236
238
  options: {
237
239
  url: '/_api/v2/user/capacity/throughput',
@@ -1489,8 +1491,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1489
1491
  * response.
1490
1492
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1491
1493
  * in attachment stubs if the particular attachment is compressed.
1492
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
1493
- * specified revisions. Note this does not include the attachments for the specified revisions.
1494
1494
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1495
1495
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1496
1496
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -1501,8 +1501,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1501
1501
  * document.
1502
1502
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
1503
1503
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
1504
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
1505
- * accepts a value of `all` to return all leaf revisions.
1506
1504
  * @param {string} [params.rev] - Query parameter to specify a document revision.
1507
1505
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
1508
1506
  * revisions.
@@ -1521,13 +1519,11 @@ var CloudantV1 = /** @class */ (function (_super) {
1521
1519
  var query = {
1522
1520
  'attachments': _params.attachments,
1523
1521
  'att_encoding_info': _params.attEncodingInfo,
1524
- 'atts_since': _params.attsSince,
1525
1522
  'conflicts': _params.conflicts,
1526
1523
  'deleted_conflicts': _params.deletedConflicts,
1527
1524
  'latest': _params.latest,
1528
1525
  'local_seq': _params.localSeq,
1529
1526
  'meta': _params.meta,
1530
- 'open_revs': _params.openRevs,
1531
1527
  'rev': _params.rev,
1532
1528
  'revs': _params.revs,
1533
1529
  'revs_info': _params.revsInfo
@@ -1569,8 +1565,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1569
1565
  * response.
1570
1566
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1571
1567
  * in attachment stubs if the particular attachment is compressed.
1572
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
1573
- * specified revisions. Note this does not include the attachments for the specified revisions.
1574
1568
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1575
1569
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1576
1570
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -1581,8 +1575,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1581
1575
  * document.
1582
1576
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
1583
1577
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
1584
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
1585
- * accepts a value of `all` to return all leaf revisions.
1586
1578
  * @param {string} [params.rev] - Query parameter to specify a document revision.
1587
1579
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
1588
1580
  * revisions.
@@ -1601,13 +1593,11 @@ var CloudantV1 = /** @class */ (function (_super) {
1601
1593
  var query = {
1602
1594
  'attachments': _params.attachments,
1603
1595
  'att_encoding_info': _params.attEncodingInfo,
1604
- 'atts_since': _params.attsSince,
1605
1596
  'conflicts': _params.conflicts,
1606
1597
  'deleted_conflicts': _params.deletedConflicts,
1607
1598
  'latest': _params.latest,
1608
1599
  'local_seq': _params.localSeq,
1609
1600
  'meta': _params.meta,
1610
- 'open_revs': _params.openRevs,
1611
1601
  'rev': _params.rev,
1612
1602
  'revs': _params.revs,
1613
1603
  'revs_info': _params.revsInfo
@@ -1650,8 +1640,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1650
1640
  * response.
1651
1641
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1652
1642
  * in attachment stubs if the particular attachment is compressed.
1653
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
1654
- * specified revisions. Note this does not include the attachments for the specified revisions.
1655
1643
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1656
1644
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1657
1645
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -1662,8 +1650,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1662
1650
  * document.
1663
1651
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
1664
1652
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
1665
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
1666
- * accepts a value of `all` to return all leaf revisions.
1667
1653
  * @param {string} [params.rev] - Query parameter to specify a document revision.
1668
1654
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
1669
1655
  * revisions.
@@ -1682,13 +1668,11 @@ var CloudantV1 = /** @class */ (function (_super) {
1682
1668
  var query = {
1683
1669
  'attachments': _params.attachments,
1684
1670
  'att_encoding_info': _params.attEncodingInfo,
1685
- 'atts_since': _params.attsSince,
1686
1671
  'conflicts': _params.conflicts,
1687
1672
  'deleted_conflicts': _params.deletedConflicts,
1688
1673
  'latest': _params.latest,
1689
1674
  'local_seq': _params.localSeq,
1690
1675
  'meta': _params.meta,
1691
- 'open_revs': _params.openRevs,
1692
1676
  'rev': _params.rev,
1693
1677
  'revs': _params.revs,
1694
1678
  'revs_info': _params.revsInfo
@@ -1731,8 +1715,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1731
1715
  * response.
1732
1716
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1733
1717
  * in attachment stubs if the particular attachment is compressed.
1734
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
1735
- * specified revisions. Note this does not include the attachments for the specified revisions.
1736
1718
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1737
1719
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1738
1720
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -1743,8 +1725,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1743
1725
  * document.
1744
1726
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
1745
1727
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
1746
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
1747
- * accepts a value of `all` to return all leaf revisions.
1748
1728
  * @param {string} [params.rev] - Query parameter to specify a document revision.
1749
1729
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
1750
1730
  * revisions.
@@ -1763,13 +1743,11 @@ var CloudantV1 = /** @class */ (function (_super) {
1763
1743
  var query = {
1764
1744
  'attachments': _params.attachments,
1765
1745
  'att_encoding_info': _params.attEncodingInfo,
1766
- 'atts_since': _params.attsSince,
1767
1746
  'conflicts': _params.conflicts,
1768
1747
  'deleted_conflicts': _params.deletedConflicts,
1769
1748
  'latest': _params.latest,
1770
1749
  'local_seq': _params.localSeq,
1771
1750
  'meta': _params.meta,
1772
- 'open_revs': _params.openRevs,
1773
1751
  'rev': _params.rev,
1774
1752
  'revs': _params.revs,
1775
1753
  'revs_info': _params.revsInfo
@@ -1972,8 +1950,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1972
1950
  * response.
1973
1951
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
1974
1952
  * in attachment stubs if the particular attachment is compressed.
1975
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
1976
- * specified revisions. Note this does not include the attachments for the specified revisions.
1977
1953
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
1978
1954
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
1979
1955
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -1984,8 +1960,6 @@ var CloudantV1 = /** @class */ (function (_super) {
1984
1960
  * document.
1985
1961
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
1986
1962
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
1987
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
1988
- * accepts a value of `all` to return all leaf revisions.
1989
1963
  * @param {string} [params.rev] - Query parameter to specify a document revision.
1990
1964
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
1991
1965
  * revisions.
@@ -2004,13 +1978,11 @@ var CloudantV1 = /** @class */ (function (_super) {
2004
1978
  var query = {
2005
1979
  'attachments': _params.attachments,
2006
1980
  'att_encoding_info': _params.attEncodingInfo,
2007
- 'atts_since': _params.attsSince,
2008
1981
  'conflicts': _params.conflicts,
2009
1982
  'deleted_conflicts': _params.deletedConflicts,
2010
1983
  'latest': _params.latest,
2011
1984
  'local_seq': _params.localSeq,
2012
1985
  'meta': _params.meta,
2013
- 'open_revs': _params.openRevs,
2014
1986
  'rev': _params.rev,
2015
1987
  'revs': _params.revs,
2016
1988
  'revs_info': _params.revsInfo
@@ -4535,8 +4507,6 @@ var CloudantV1 = /** @class */ (function (_super) {
4535
4507
  * response.
4536
4508
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
4537
4509
  * in attachment stubs if the particular attachment is compressed.
4538
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
4539
- * specified revisions. Note this does not include the attachments for the specified revisions.
4540
4510
  * @param {boolean} [params.conflicts] - Query parameter to specify whether to include a list of conflicted revisions
4541
4511
  * in the `_conflicts` property of the returned document. Ignored if `include_docs` isn't `true`.
4542
4512
  * @param {boolean} [params.deletedConflicts] - Query parameter to specify whether to include a list of deleted
@@ -4547,8 +4517,6 @@ var CloudantV1 = /** @class */ (function (_super) {
4547
4517
  * document.
4548
4518
  * @param {boolean} [params.meta] - Query parameter to specify whether to include document meta information. Acts the
4549
4519
  * same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.
4550
- * @param {string[]} [params.openRevs] - Query parameter to specify leaf revisions to retrieve. Additionally, it
4551
- * accepts a value of `all` to return all leaf revisions.
4552
4520
  * @param {string} [params.rev] - Query parameter to specify a document revision.
4553
4521
  * @param {boolean} [params.revs] - Query parameter to specify whether to include a list of all known document
4554
4522
  * revisions.
@@ -4567,13 +4535,11 @@ var CloudantV1 = /** @class */ (function (_super) {
4567
4535
  var query = {
4568
4536
  'attachments': _params.attachments,
4569
4537
  'att_encoding_info': _params.attEncodingInfo,
4570
- 'atts_since': _params.attsSince,
4571
4538
  'conflicts': _params.conflicts,
4572
4539
  'deleted_conflicts': _params.deletedConflicts,
4573
4540
  'latest': _params.latest,
4574
4541
  'local_seq': _params.localSeq,
4575
4542
  'meta': _params.meta,
4576
- 'open_revs': _params.openRevs,
4577
4543
  'rev': _params.rev,
4578
4544
  'revs': _params.revs,
4579
4545
  'revs_info': _params.revsInfo
@@ -5408,8 +5374,6 @@ var CloudantV1 = /** @class */ (function (_super) {
5408
5374
  * response.
5409
5375
  * @param {boolean} [params.attEncodingInfo] - Query parameter to specify whether to include the encoding information
5410
5376
  * in attachment stubs if the particular attachment is compressed.
5411
- * @param {string[]} [params.attsSince] - Query parameter to specify whether to include attachments only since
5412
- * specified revisions. Note this does not include the attachments for the specified revisions.
5413
5377
  * @param {boolean} [params.localSeq] - Query parameter to specify whether to include the last update sequence for the
5414
5378
  * document.
5415
5379
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -5425,7 +5389,6 @@ var CloudantV1 = /** @class */ (function (_super) {
5425
5389
  var query = {
5426
5390
  'attachments': _params.attachments,
5427
5391
  'att_encoding_info': _params.attEncodingInfo,
5428
- 'atts_since': _params.attsSince,
5429
5392
  'local_seq': _params.localSeq
5430
5393
  };
5431
5394
  var path = {
@@ -5745,15 +5708,15 @@ var CloudantV1 = /** @class */ (function (_super) {
5745
5708
  /**
5746
5709
  * Retrieve Activity Tracker events information.
5747
5710
  *
5748
- * Check event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
5711
+ * Check event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
5749
5712
  *
5750
5713
  * @param {Object} [params] - The parameters to send to the service.
5751
5714
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
5752
- * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEventsConfiguration>>}
5715
+ * @returns {Promise<CloudantV1.Response<CloudantV1.ActivityTrackerEvents>>}
5753
5716
  */
5754
- CloudantV1.prototype.getActivityTrackerEventsInformation = function (params) {
5717
+ CloudantV1.prototype.getActivityTrackerEvents = function (params) {
5755
5718
  var _params = Object.assign({}, params);
5756
- var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getActivityTrackerEventsInformation');
5719
+ var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'getActivityTrackerEvents');
5757
5720
  var parameters = {
5758
5721
  options: {
5759
5722
  url: '/_api/v2/user/activity_tracker/events',
@@ -5771,15 +5734,15 @@ var CloudantV1 = /** @class */ (function (_super) {
5771
5734
  /**
5772
5735
  * Modify Activity Tracker events configuration.
5773
5736
  *
5774
- * Configure event types that are being sent to IBM Cloud Activity Tracker with LogDNA for the IBM Cloudant instance.
5737
+ * Configure event types that are being sent to IBM Cloud Activity Tracker for the IBM Cloudant instance.
5775
5738
  *
5776
5739
  * @param {Object} params - The parameters to send to the service.
5777
- * @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker with
5778
- * LogDNA for the IBM Cloudant instance. "management" is a required element of this array.
5740
+ * @param {string[]} params.types - An array of event types that are being sent to IBM Cloud Activity Tracker for the
5741
+ * IBM Cloudant instance. "management" is a required element of this array.
5779
5742
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
5780
5743
  * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
5781
5744
  */
5782
- CloudantV1.prototype.postActivityTrackerEventsConfiguration = function (params) {
5745
+ CloudantV1.prototype.postActivityTrackerEvents = function (params) {
5783
5746
  var _params = Object.assign({}, params);
5784
5747
  var requiredParams = ['types'];
5785
5748
  var missingParams = ibm_cloud_sdk_core_1.getMissingParams(_params, requiredParams);
@@ -5789,7 +5752,7 @@ var CloudantV1 = /** @class */ (function (_super) {
5789
5752
  var body = {
5790
5753
  'types': _params.types
5791
5754
  };
5792
- var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postActivityTrackerEventsConfiguration');
5755
+ var sdkHeaders = common_1.getSdkHeaders(CloudantV1.DEFAULT_SERVICE_NAME, 'v1', 'postActivityTrackerEvents');
5793
5756
  var parameters = {
5794
5757
  options: {
5795
5758
  url: '/_api/v2/user/activity_tracker/events',
@@ -6368,16 +6331,16 @@ var CloudantV1 = /** @class */ (function (_super) {
6368
6331
  Batch["OK"] = "ok";
6369
6332
  })(Batch = PutLocalDocumentConstants.Batch || (PutLocalDocumentConstants.Batch = {}));
6370
6333
  })(PutLocalDocumentConstants = CloudantV1.PutLocalDocumentConstants || (CloudantV1.PutLocalDocumentConstants = {}));
6371
- /** Constants for the `postActivityTrackerEventsConfiguration` operation. */
6372
- var PostActivityTrackerEventsConfigurationConstants;
6373
- (function (PostActivityTrackerEventsConfigurationConstants) {
6334
+ /** Constants for the `postActivityTrackerEvents` operation. */
6335
+ var PostActivityTrackerEventsConstants;
6336
+ (function (PostActivityTrackerEventsConstants) {
6374
6337
  /** Types */
6375
6338
  var Types;
6376
6339
  (function (Types) {
6377
6340
  Types["MANAGEMENT"] = "management";
6378
6341
  Types["DATA"] = "data";
6379
- })(Types = PostActivityTrackerEventsConfigurationConstants.Types || (PostActivityTrackerEventsConfigurationConstants.Types = {}));
6380
- })(PostActivityTrackerEventsConfigurationConstants = CloudantV1.PostActivityTrackerEventsConfigurationConstants || (CloudantV1.PostActivityTrackerEventsConfigurationConstants = {}));
6342
+ })(Types = PostActivityTrackerEventsConstants.Types || (PostActivityTrackerEventsConstants.Types = {}));
6343
+ })(PostActivityTrackerEventsConstants = CloudantV1.PostActivityTrackerEventsConstants || (CloudantV1.PostActivityTrackerEventsConstants = {}));
6381
6344
  })(CloudantV1 || (CloudantV1 = {}));
6382
6345
  module.exports = CloudantV1;
6383
6346
  //# sourceMappingURL=v1.js.map