@ibm-cloud/cloudant 0.8.1 → 0.8.3

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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * (C) Copyright IBM Corp. 2023.
2
+ * (C) Copyright IBM Corp. 2024.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ declare class CloudantV1 extends CloudantBaseService {
37
37
  * @param {UserOptions} [options] - The parameters to send to the service.
38
38
  * @param {string} [options.serviceName] - The name of the service to configure
39
39
  * @param {Authenticator} [options.authenticator] - The Authenticator object used to authenticate requests to the service
40
- * @param {string} [options.serviceUrl] - The URL for the service
40
+ * @param {string} [options.serviceUrl] - The base URL for the service
41
41
  * @returns {CloudantV1}
42
42
  */
43
43
  static newInstance(options: UserOptions): CloudantV1;
@@ -45,7 +45,7 @@ declare class CloudantV1 extends CloudantBaseService {
45
45
  * Construct a CloudantV1 object.
46
46
  *
47
47
  * @param {Object} options - Options for the service.
48
- * @param {string} [options.serviceUrl] - The base url to use when contacting the service. The base url may differ between IBM Cloud regions.
48
+ * @param {string} [options.serviceUrl] - The base URL for the service
49
49
  * @param {OutgoingHttpHeaders} [options.headers] - Default headers that shall be included with every request to the service.
50
50
  * @param {Authenticator} options.authenticator - The Authenticator object used to authenticate requests to the service
51
51
  * @constructor
@@ -132,6 +132,8 @@ declare class CloudantV1 extends CloudantBaseService {
132
132
  * and might repeat changes. Polling modes for this method work like polling modes for the changes feed.
133
133
  *
134
134
  * @param {Object} [params] - The parameters to send to the service.
135
+ * @param {boolean} [params.descending] - Query parameter to specify whether to return the documents in descending by
136
+ * key order.
135
137
  * @param {string} [params.feed] - Query parameter to specify the changes feed type.
136
138
  * @param {number} [params.heartbeat] - Query parameter to specify the period in milliseconds after which an empty
137
139
  * line is sent in the results. Off by default and only applicable for
@@ -145,6 +147,8 @@ declare class CloudantV1 extends CloudantBaseService {
145
147
  * * Switch to scheduled usage of one of the non-continuous changes feed types
146
148
  * (`normal` or `longpoll`).
147
149
  * * Use TCP keepalive.
150
+ * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
151
+ * to.
148
152
  * @param {number} [params.timeout] - Query parameter to specify the maximum period in milliseconds to wait for a
149
153
  * change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous`
150
154
  * feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also
@@ -2697,6 +2701,8 @@ declare namespace CloudantV1 {
2697
2701
  }
2698
2702
  /** Parameters for the `getDbUpdates` operation. */
2699
2703
  interface GetDbUpdatesParams {
2704
+ /** Query parameter to specify whether to return the documents in descending by key order. */
2705
+ descending?: boolean;
2700
2706
  /** Query parameter to specify the changes feed type. */
2701
2707
  feed?: GetDbUpdatesConstants.Feed | string;
2702
2708
  /** Query parameter to specify the period in milliseconds after which an empty line is sent in the results. Off
@@ -2713,6 +2719,8 @@ declare namespace CloudantV1 {
2713
2719
  * * Use TCP keepalive.
2714
2720
  */
2715
2721
  heartbeat?: number;
2722
+ /** Query parameter to specify the number of returned documents to limit the result to. */
2723
+ limit?: number;
2716
2724
  /** Query parameter to specify the maximum period in milliseconds to wait for a change before the response is
2717
2725
  * sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is
2718
2726
  * specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum