@ibm-cloud/cloudant 0.1.5 → 0.2.1

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
@@ -343,9 +343,9 @@ declare class CloudantV1 extends CloudantBaseService {
343
343
  * @param {Object} params - The parameters to send to the service.
344
344
  * @param {string} params.db - Path parameter to specify the database name.
345
345
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
346
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
346
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
347
347
  */
348
- headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
348
+ headDatabase(params: CloudantV1.HeadDatabaseParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
349
349
  /**
350
350
  * Query a list of all database names in the instance.
351
351
  *
@@ -433,9 +433,9 @@ declare class CloudantV1 extends CloudantBaseService {
433
433
  * matter what rev was requested.
434
434
  * @param {string} [params.rev] - Query parameter to specify a document revision.
435
435
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
436
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
436
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
437
437
  */
438
- headDocument(params: CloudantV1.HeadDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
438
+ headDocument(params: CloudantV1.HeadDocumentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
439
439
  /**
440
440
  * Create or modify a document in a database.
441
441
  *
@@ -851,9 +851,9 @@ declare class CloudantV1 extends CloudantBaseService {
851
851
  * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
852
852
  * cache control.
853
853
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
854
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
854
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
855
855
  */
856
- headDesignDocument(params: CloudantV1.HeadDesignDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
856
+ headDesignDocument(params: CloudantV1.HeadDesignDocumentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
857
857
  /**
858
858
  * Delete a design document.
859
859
  *
@@ -2006,130 +2006,6 @@ declare class CloudantV1 extends CloudantBaseService {
2006
2006
  * @returns {Promise<CloudantV1.Response<CloudantV1.SearchInfoResult>>}
2007
2007
  */
2008
2008
  getSearchInfo(params: CloudantV1.GetSearchInfoParams): Promise<CloudantV1.Response<CloudantV1.SearchInfoResult>>;
2009
- /*************************
2010
- * geospatial
2011
- ************************/
2012
- /**
2013
- * Query a geospatial index.
2014
- *
2015
- * Executes a query against the requested geospatial index from the specified design document.
2016
- *
2017
- * @param {Object} params - The parameters to send to the service.
2018
- * @param {string} params.db - Path parameter to specify the database name.
2019
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2020
- * design document ID excluding the `_design/` prefix.
2021
- * @param {string} params.index - Path parameter to specify the index name.
2022
- * @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
2023
- * latitude,longitude coordinates for the lower-left and upper-right corners. An example is
2024
- * `-11.05987446,12.28339928,-101.05987446,62.28339928`.
2025
- * @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
2026
- * request. This parameter enables paging through the results. If there are no more results after the bookmark, you
2027
- * get a response containing no further results and the same bookmark, confirming the end of the result list.
2028
- * @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
2029
- * specified format.
2030
- * @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
2031
- * query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
2032
- * `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
2033
- * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
2034
- * documents in the response.
2035
- * @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
2036
- * geospatial queries.
2037
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
2038
- * to.
2039
- * @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
2040
- * geospatial queries.
2041
- * @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
2042
- * If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
2043
- * geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
2044
- * Model) specification geometric relations documented.
2045
- * @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
2046
- * coordinate point in a circular geospatial query.
2047
- * @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
2048
- * coordinate point in an ellipse geospatial query.
2049
- * @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
2050
- * coordinate point in an ellipse geospatial query.
2051
- * @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
2052
- * Model)geospatial relationship between the query geometry and the result documents.
2053
- * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
2054
- * results.
2055
- * @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
2056
- * returning results.
2057
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2058
- * @returns {Promise<CloudantV1.Response<CloudantV1.GeoResult>>}
2059
- */
2060
- getGeo(params: CloudantV1.GetGeoParams): Promise<CloudantV1.Response<CloudantV1.GeoResult>>;
2061
- /**
2062
- * Query a geospatial index as stream.
2063
- *
2064
- * Executes a query against the requested geospatial index from the specified design document.
2065
- *
2066
- * @param {Object} params - The parameters to send to the service.
2067
- * @param {string} params.db - Path parameter to specify the database name.
2068
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2069
- * design document ID excluding the `_design/` prefix.
2070
- * @param {string} params.index - Path parameter to specify the index name.
2071
- * @param {string} [params.bbox] - Query parameter to specify a geospatial query bounding box with two
2072
- * latitude,longitude coordinates for the lower-left and upper-right corners. An example is
2073
- * `-11.05987446,12.28339928,-101.05987446,62.28339928`.
2074
- * @param {string} [params.bookmark] - Query parameter to specify a bookmark that was received from a previous
2075
- * request. This parameter enables paging through the results. If there are no more results after the bookmark, you
2076
- * get a response containing no further results and the same bookmark, confirming the end of the result list.
2077
- * @param {string} [params.format] - Query parameter that causes the geospatial query output to be returned in the
2078
- * specified format.
2079
- * @param {string} [params.g] - Query parameter to specify a Well Known Text (WKT) representation of a geospatial
2080
- * query geometry. The valid values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`,
2081
- * `MultiLineString`, `MultiPolygon`, and `GeometryCollection`.
2082
- * @param {boolean} [params.includeDocs] - Query parameter to specify whether to include the full content of the
2083
- * documents in the response.
2084
- * @param {number} [params.lat] - Query parameter to specify a latitude coordinate for use with radius or ellipse
2085
- * geospatial queries.
2086
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
2087
- * to.
2088
- * @param {number} [params.lon] - Query parameter to specify a longitude coordinate for use with radius or ellipse
2089
- * geospatial queries.
2090
- * @param {boolean} [params.nearest] - Query parameter to specify whether to perform a nearest neighbour (NN) search.
2091
- * If provided, the `nearest=true` search returns all results by sorting their distances to the center of the query
2092
- * geometry. NN search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection
2093
- * Model) specification geometric relations documented.
2094
- * @param {number} [params.radius] - Query parameter to specify the radius, in meters, to search from a lat,lon
2095
- * coordinate point in a circular geospatial query.
2096
- * @param {number} [params.rangex] - Query parameter to specify the first radius, in meters, to search from a lat,lon
2097
- * coordinate point in an ellipse geospatial query.
2098
- * @param {number} [params.rangey] - Query parameter to specify the second radius, in meters, to search from a lat,lon
2099
- * coordinate point in an ellipse geospatial query.
2100
- * @param {string} [params.relation] - Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection
2101
- * Model)geospatial relationship between the query geometry and the result documents.
2102
- * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
2103
- * results.
2104
- * @param {string} [params.stale] - Query parameter to specify to not wait for the index to finish building before
2105
- * returning results.
2106
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2107
- * @returns {Promise<CloudantV1.Response<NodeJS.ReadableStream>>}
2108
- */
2109
- getGeoAsStream(params: CloudantV1.GetGeoAsStreamParams): Promise<CloudantV1.Response<NodeJS.ReadableStream>>;
2110
- /**
2111
- * Cleanup old geospatial indexes.
2112
- *
2113
- * Cleanup old geospatial indexes from disk that have been superseded by newer index builds.
2114
- *
2115
- * @param {Object} params - The parameters to send to the service.
2116
- * @param {string} params.db - Path parameter to specify the database name.
2117
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2118
- * @returns {Promise<CloudantV1.Response<CloudantV1.Ok>>}
2119
- */
2120
- postGeoCleanup(params: CloudantV1.PostGeoCleanupParams): Promise<CloudantV1.Response<CloudantV1.Ok>>;
2121
- /**
2122
- * Retrieve information about a geospatial index.
2123
- *
2124
- * @param {Object} params - The parameters to send to the service.
2125
- * @param {string} params.db - Path parameter to specify the database name.
2126
- * @param {string} params.ddoc - Path parameter to specify the design document name. The design document name is the
2127
- * design document ID excluding the `_design/` prefix.
2128
- * @param {string} params.index - Path parameter to specify the index name.
2129
- * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2130
- * @returns {Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>}
2131
- */
2132
- getGeoIndexInformation(params: CloudantV1.GetGeoIndexInformationParams): Promise<CloudantV1.Response<CloudantV1.GeoIndexInformation>>;
2133
2009
  /*************************
2134
2010
  * replication
2135
2011
  ************************/
@@ -2145,9 +2021,9 @@ declare class CloudantV1 extends CloudantBaseService {
2145
2021
  * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2146
2022
  * cache control.
2147
2023
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2148
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2024
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2149
2025
  */
2150
- headReplicationDocument(params: CloudantV1.HeadReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2026
+ headReplicationDocument(params: CloudantV1.HeadReplicationDocumentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2151
2027
  /**
2152
2028
  * Retrieve HTTP headers for a replication scheduler document.
2153
2029
  *
@@ -2158,9 +2034,9 @@ declare class CloudantV1 extends CloudantBaseService {
2158
2034
  * @param {Object} params - The parameters to send to the service.
2159
2035
  * @param {string} params.docId - Path parameter to specify the document ID.
2160
2036
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2161
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2037
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2162
2038
  */
2163
- headSchedulerDocument(params: CloudantV1.HeadSchedulerDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2039
+ headSchedulerDocument(params: CloudantV1.HeadSchedulerDocumentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2164
2040
  /**
2165
2041
  * Retrieve the HTTP headers for a replication scheduler job.
2166
2042
  *
@@ -2170,9 +2046,9 @@ declare class CloudantV1 extends CloudantBaseService {
2170
2046
  * @param {Object} params - The parameters to send to the service.
2171
2047
  * @param {string} params.jobId - Path parameter to specify the replication job id.
2172
2048
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2173
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2049
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2174
2050
  */
2175
- headSchedulerJob(params: CloudantV1.HeadSchedulerJobParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2051
+ headSchedulerJob(params: CloudantV1.HeadSchedulerJobParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2176
2052
  /**
2177
2053
  * Cancel a replication.
2178
2054
  *
@@ -2282,8 +2158,7 @@ declare class CloudantV1 extends CloudantBaseService {
2282
2158
  * recent events, and other information.
2283
2159
  *
2284
2160
  * @param {Object} [params] - The parameters to send to the service.
2285
- * @param {number} [params.limit] - Query parameter to specify the number of returned documents to limit the result
2286
- * to.
2161
+ * @param {number} [params.limit] - Query parameter to specify the number of returned jobs to limit the result to.
2287
2162
  * @param {number} [params.skip] - Query parameter to specify the number of records before starting to return the
2288
2163
  * results.
2289
2164
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
@@ -2438,9 +2313,9 @@ declare class CloudantV1 extends CloudantBaseService {
2438
2313
  * cache control.
2439
2314
  * @param {string} [params.rev] - Query parameter to specify a document revision.
2440
2315
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2441
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2316
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2442
2317
  */
2443
- headAttachment(params: CloudantV1.HeadAttachmentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2318
+ headAttachment(params: CloudantV1.HeadAttachmentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2444
2319
  /**
2445
2320
  * Delete an attachment.
2446
2321
  *
@@ -2522,9 +2397,9 @@ declare class CloudantV1 extends CloudantBaseService {
2522
2397
  * @param {string} [params.ifNoneMatch] - Header parameter to specify a double quoted document revision token for
2523
2398
  * cache control.
2524
2399
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2525
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2400
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2526
2401
  */
2527
- headLocalDocument(params: CloudantV1.HeadLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2402
+ headLocalDocument(params: CloudantV1.HeadLocalDocumentParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2528
2403
  /**
2529
2404
  * Delete a local document.
2530
2405
  *
@@ -2631,9 +2506,9 @@ declare class CloudantV1 extends CloudantBaseService {
2631
2506
  *
2632
2507
  * @param {Object} [params] - The parameters to send to the service.
2633
2508
  * @param {OutgoingHttpHeaders} [params.headers] - Custom request headers
2634
- * @returns {Promise<CloudantV1.Response<CloudantV1.Empty>>}
2509
+ * @returns {Promise<CloudantV1.Response<CloudantV1.EmptyObject>>}
2635
2510
  */
2636
- headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.Empty>>;
2511
+ headUpInformation(params?: CloudantV1.HeadUpInformationParams): Promise<CloudantV1.Response<CloudantV1.EmptyObject>>;
2637
2512
  /**
2638
2513
  * Retrieve list of running tasks.
2639
2514
  *
@@ -2706,7 +2581,7 @@ declare namespace CloudantV1 {
2706
2581
  /** The callback for a service request. */
2707
2582
  type Callback<T> = (error: any, response?: Response<T>) => void;
2708
2583
  /** The body of a service request that returns no response data. */
2709
- interface Empty {
2584
+ interface EmptyObject {
2710
2585
  }
2711
2586
  /** A standard JS object, defined to avoid the limitations of `Object` and `object` */
2712
2587
  interface JsonObject {
@@ -5063,202 +4938,6 @@ declare namespace CloudantV1 {
5063
4938
  index: string;
5064
4939
  headers?: OutgoingHttpHeaders;
5065
4940
  }
5066
- /** Parameters for the `getGeo` operation. */
5067
- interface GetGeoParams {
5068
- /** Path parameter to specify the database name. */
5069
- db: string;
5070
- /** Path parameter to specify the design document name. The design document name is the design document ID
5071
- * excluding the `_design/` prefix.
5072
- */
5073
- ddoc: string;
5074
- /** Path parameter to specify the index name. */
5075
- index: string;
5076
- /** Query parameter to specify a geospatial query bounding box with two latitude,longitude coordinates for the
5077
- * lower-left and upper-right corners. An example is `-11.05987446,12.28339928,-101.05987446,62.28339928`.
5078
- */
5079
- bbox?: string;
5080
- /** Query parameter to specify a bookmark that was received from a previous request. This parameter enables
5081
- * paging through the results. If there are no more results after the bookmark, you get a response containing no
5082
- * further results and the same bookmark, confirming the end of the result list.
5083
- */
5084
- bookmark?: string;
5085
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5086
- format?: GetGeoConstants.Format | string;
5087
- /** Query parameter to specify a Well Known Text (WKT) representation of a geospatial query geometry. The valid
5088
- * values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`,
5089
- * `MultiPolygon`, and `GeometryCollection`.
5090
- */
5091
- g?: string;
5092
- /** Query parameter to specify whether to include the full content of the documents in the response. */
5093
- includeDocs?: boolean;
5094
- /** Query parameter to specify a latitude coordinate for use with radius or ellipse geospatial queries. */
5095
- lat?: number;
5096
- /** Query parameter to specify the number of returned documents to limit the result to. */
5097
- limit?: number;
5098
- /** Query parameter to specify a longitude coordinate for use with radius or ellipse geospatial queries. */
5099
- lon?: number;
5100
- /** Query parameter to specify whether to perform a nearest neighbour (NN) search. If provided, the
5101
- * `nearest=true` search returns all results by sorting their distances to the center of the query geometry. NN
5102
- * search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection Model)
5103
- * specification geometric relations documented.
5104
- */
5105
- nearest?: boolean;
5106
- /** Query parameter to specify the radius, in meters, to search from a lat,lon coordinate point in a circular
5107
- * geospatial query.
5108
- */
5109
- radius?: number;
5110
- /** Query parameter to specify the first radius, in meters, to search from a lat,lon coordinate point in an
5111
- * ellipse geospatial query.
5112
- */
5113
- rangex?: number;
5114
- /** Query parameter to specify the second radius, in meters, to search from a lat,lon coordinate point in an
5115
- * ellipse geospatial query.
5116
- */
5117
- rangey?: number;
5118
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial
5119
- * relationship between the query geometry and the result documents.
5120
- */
5121
- relation?: GetGeoConstants.Relation | string;
5122
- /** Query parameter to specify the number of records before starting to return the results. */
5123
- skip?: number;
5124
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5125
- stale?: GetGeoConstants.Stale | string;
5126
- headers?: OutgoingHttpHeaders;
5127
- }
5128
- /** Constants for the `getGeo` operation. */
5129
- namespace GetGeoConstants {
5130
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5131
- enum Format {
5132
- LEGACY = "legacy",
5133
- GEOJSON = "geojson",
5134
- VIEW = "view",
5135
- APPLICATION_VND_GEO_JSON = "application/vnd.geo+json"
5136
- }
5137
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
5138
- enum Relation {
5139
- CONTAINS = "contains",
5140
- CONTAINS_PROPERLY = "contains_properly",
5141
- COVERED_BY = "covered_by",
5142
- COVERS = "covers",
5143
- CROSSES = "crosses",
5144
- DISJOINT = "disjoint",
5145
- INTERSECTS = "intersects",
5146
- OVERLAPS = "overlaps",
5147
- TOUCHES = "touches",
5148
- WITHIN = "within"
5149
- }
5150
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5151
- enum Stale {
5152
- OK = "ok"
5153
- }
5154
- }
5155
- /** Parameters for the `getGeoAsStream` operation. */
5156
- interface GetGeoAsStreamParams {
5157
- /** Path parameter to specify the database name. */
5158
- db: string;
5159
- /** Path parameter to specify the design document name. The design document name is the design document ID
5160
- * excluding the `_design/` prefix.
5161
- */
5162
- ddoc: string;
5163
- /** Path parameter to specify the index name. */
5164
- index: string;
5165
- /** Query parameter to specify a geospatial query bounding box with two latitude,longitude coordinates for the
5166
- * lower-left and upper-right corners. An example is `-11.05987446,12.28339928,-101.05987446,62.28339928`.
5167
- */
5168
- bbox?: string;
5169
- /** Query parameter to specify a bookmark that was received from a previous request. This parameter enables
5170
- * paging through the results. If there are no more results after the bookmark, you get a response containing no
5171
- * further results and the same bookmark, confirming the end of the result list.
5172
- */
5173
- bookmark?: string;
5174
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5175
- format?: GetGeoAsStreamConstants.Format | string;
5176
- /** Query parameter to specify a Well Known Text (WKT) representation of a geospatial query geometry. The valid
5177
- * values for the WKT parameter include `Point`, `LineString`, `Polygon`, `MultiPoint`, `MultiLineString`,
5178
- * `MultiPolygon`, and `GeometryCollection`.
5179
- */
5180
- g?: string;
5181
- /** Query parameter to specify whether to include the full content of the documents in the response. */
5182
- includeDocs?: boolean;
5183
- /** Query parameter to specify a latitude coordinate for use with radius or ellipse geospatial queries. */
5184
- lat?: number;
5185
- /** Query parameter to specify the number of returned documents to limit the result to. */
5186
- limit?: number;
5187
- /** Query parameter to specify a longitude coordinate for use with radius or ellipse geospatial queries. */
5188
- lon?: number;
5189
- /** Query parameter to specify whether to perform a nearest neighbour (NN) search. If provided, the
5190
- * `nearest=true` search returns all results by sorting their distances to the center of the query geometry. NN
5191
- * search can be used alone or with any of the supported DE-9IM (Dimensionally Extended nine-Intersection Model)
5192
- * specification geometric relations documented.
5193
- */
5194
- nearest?: boolean;
5195
- /** Query parameter to specify the radius, in meters, to search from a lat,lon coordinate point in a circular
5196
- * geospatial query.
5197
- */
5198
- radius?: number;
5199
- /** Query parameter to specify the first radius, in meters, to search from a lat,lon coordinate point in an
5200
- * ellipse geospatial query.
5201
- */
5202
- rangex?: number;
5203
- /** Query parameter to specify the second radius, in meters, to search from a lat,lon coordinate point in an
5204
- * ellipse geospatial query.
5205
- */
5206
- rangey?: number;
5207
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial
5208
- * relationship between the query geometry and the result documents.
5209
- */
5210
- relation?: GetGeoAsStreamConstants.Relation | string;
5211
- /** Query parameter to specify the number of records before starting to return the results. */
5212
- skip?: number;
5213
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5214
- stale?: GetGeoAsStreamConstants.Stale | string;
5215
- headers?: OutgoingHttpHeaders;
5216
- }
5217
- /** Constants for the `getGeoAsStream` operation. */
5218
- namespace GetGeoAsStreamConstants {
5219
- /** Query parameter that causes the geospatial query output to be returned in the specified format. */
5220
- enum Format {
5221
- LEGACY = "legacy",
5222
- GEOJSON = "geojson",
5223
- VIEW = "view",
5224
- APPLICATION_VND_GEO_JSON = "application/vnd.geo+json"
5225
- }
5226
- /** Query parameter to specify the DE-9IM (Dimensionally Extended nine-Intersection Model)geospatial relationship between the query geometry and the result documents. */
5227
- enum Relation {
5228
- CONTAINS = "contains",
5229
- CONTAINS_PROPERLY = "contains_properly",
5230
- COVERED_BY = "covered_by",
5231
- COVERS = "covers",
5232
- CROSSES = "crosses",
5233
- DISJOINT = "disjoint",
5234
- INTERSECTS = "intersects",
5235
- OVERLAPS = "overlaps",
5236
- TOUCHES = "touches",
5237
- WITHIN = "within"
5238
- }
5239
- /** Query parameter to specify to not wait for the index to finish building before returning results. */
5240
- enum Stale {
5241
- OK = "ok"
5242
- }
5243
- }
5244
- /** Parameters for the `postGeoCleanup` operation. */
5245
- interface PostGeoCleanupParams {
5246
- /** Path parameter to specify the database name. */
5247
- db: string;
5248
- headers?: OutgoingHttpHeaders;
5249
- }
5250
- /** Parameters for the `getGeoIndexInformation` operation. */
5251
- interface GetGeoIndexInformationParams {
5252
- /** Path parameter to specify the database name. */
5253
- db: string;
5254
- /** Path parameter to specify the design document name. The design document name is the design document ID
5255
- * excluding the `_design/` prefix.
5256
- */
5257
- ddoc: string;
5258
- /** Path parameter to specify the index name. */
5259
- index: string;
5260
- headers?: OutgoingHttpHeaders;
5261
- }
5262
4941
  /** Parameters for the `headReplicationDocument` operation. */
5263
4942
  interface HeadReplicationDocumentParams {
5264
4943
  /** Path parameter to specify the document ID. */
@@ -5399,7 +5078,7 @@ declare namespace CloudantV1 {
5399
5078
  }
5400
5079
  /** Parameters for the `getSchedulerJobs` operation. */
5401
5080
  interface GetSchedulerJobsParams {
5402
- /** Query parameter to specify the number of returned documents to limit the result to. */
5081
+ /** Query parameter to specify the number of returned jobs to limit the result to. */
5403
5082
  limit?: number;
5404
5083
  /** Query parameter to specify the number of records before starting to return the results. */
5405
5084
  skip?: number;
@@ -6171,8 +5850,6 @@ declare namespace CloudantV1 {
6171
5850
  validate_doc_update?: string;
6172
5851
  /** Schema for design document views. */
6173
5852
  views?: JsonObject;
6174
- /** Schema for geospatial index function definitions. */
6175
- st_indexes?: JsonObject;
6176
5853
  /** DesignDocument accepts additional properties. */
6177
5854
  [propName: string]: any;
6178
5855
  }
@@ -6370,72 +6047,6 @@ declare namespace CloudantV1 {
6370
6047
  /** warning. */
6371
6048
  warning?: string;
6372
6049
  }
6373
- /** Schema for a geospatial index definition. */
6374
- interface GeoIndexDefinition {
6375
- /** String form of a JavaScript function that is called for each document in the database. The function takes
6376
- * the document as a parameter, extracts some geospatial data from it, and then calls the `st_index` function to
6377
- * index that data. The `st_index` takes a GeoJSON geometry as a parameter.
6378
- */
6379
- index: string;
6380
- }
6381
- /** Schema for information about a geospatial index. */
6382
- interface GeoIndexInformation {
6383
- /** Schema for geospatial index statistics. */
6384
- geo_index: GeoIndexStats;
6385
- /** The name of the geospatial index design document. */
6386
- name: string;
6387
- }
6388
- /** Schema for geospatial index statistics. */
6389
- interface GeoIndexStats {
6390
- /** The size of the geospatial index, in bytes. */
6391
- data_size: number;
6392
- /** The size of the geospatial index, as stored on disk, in bytes. */
6393
- disk_size: number;
6394
- /** Number of documents in the geospatial index. */
6395
- doc_count: number;
6396
- }
6397
- /** Schema for a GeoJSON feature object. Note that the content of the feature objects varies depending on the response format chosen and whether the `include_docs` parameter is `true`. */
6398
- interface GeoJsonFeature {
6399
- /** Schema for a document ID. */
6400
- _id?: string;
6401
- /** Schema for a document revision identifier. */
6402
- _rev?: string;
6403
- /** Schema for a GeoJSON bounding box. */
6404
- bbox?: number[];
6405
- /** Schema for a GeoJSON geometry object. */
6406
- geometry: GeoJsonGeometryObject;
6407
- /** Schema for the properties of a GeoJSON feature object. */
6408
- properties?: JsonObject;
6409
- /** Declaration of the GeoJSON type: Feature Object. */
6410
- type: string;
6411
- /** GeoJsonFeature accepts additional properties. */
6412
- [propName: string]: any;
6413
- }
6414
- /** Schema for a GeoJSON geometry object. */
6415
- interface GeoJsonGeometryObject {
6416
- }
6417
- /** Schema for the result of a geospatial query operation. For the `legacy`, `geojson`, or `application/vnd.geo+json` format this is a GeoJson FeatureCollection with additional metadata in foreign members. */
6418
- interface GeoResult {
6419
- /** Opaque bookmark token used when paginating results. */
6420
- bookmark: string;
6421
- /** The array of GeoJSON Feature Objects matching the geospatial query. */
6422
- features?: GeoJsonFeature[];
6423
- /** The array of rows matching the geospatial query. Present only when using `view` format. */
6424
- rows: GeoResultRow[];
6425
- /** Declaration of the GeoJSON type: FeatureCollection Object. */
6426
- type?: string;
6427
- }
6428
- /** Schema for a row of a geospatial result using view format. */
6429
- interface GeoResultRow {
6430
- /** Schema for a document. */
6431
- doc?: Document;
6432
- /** Schema for a GeoJSON geometry. */
6433
- geometry?: GeoJsonGeometry;
6434
- /** Schema for a document ID. */
6435
- id?: string;
6436
- /** Schema for a document revision identifier. */
6437
- rev?: string;
6438
- }
6439
6050
  /** Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are: * `default_analyzer` - the default text analyzer to use * `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose. */
6440
6051
  interface IndexDefinition {
6441
6052
  /** Schema for a full text search analyzer. */
@@ -6725,6 +6336,11 @@ declare namespace CloudantV1 {
6725
6336
  use_checkpoints?: boolean;
6726
6337
  /** Schema for the user context of a session. */
6727
6338
  user_ctx?: UserContext;
6339
+ /** Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication
6340
+ * IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to
6341
+ * first replicate the winning revisions then later backfill remaining revisions with a regular replication job.
6342
+ */
6343
+ winning_revs_only?: boolean;
6728
6344
  /** Controls how many documents are processed. After each batch a checkpoint is written so this controls how
6729
6345
  * frequently checkpointing occurs.
6730
6346
  */
@@ -7163,21 +6779,5 @@ declare namespace CloudantV1 {
7163
6779
  /** Schema for any JSON type. */
7164
6780
  value: any;
7165
6781
  }
7166
- /** Schema for a GeoJSON geometry. */
7167
- interface GeoJsonGeometry extends GeoJsonGeometryObject {
7168
- /** The type of GeoJSON Geometry. */
7169
- type: string;
7170
- /** Used for all geometry types except `GeometryCollection`. The structure of the elements in the array varies
7171
- * by geometry type.
7172
- */
7173
- coordinates: any[];
7174
- }
7175
- /** Schema for a GeoJSON GeometryCollection type geometry. */
7176
- interface GeoJsonGeometryCollection extends GeoJsonGeometryObject {
7177
- /** The type of GeoJSON Geometry. */
7178
- type: string;
7179
- /** Used for the `GeometryCollection` type. */
7180
- geometries: GeoJsonGeometry[];
7181
- }
7182
6782
  }
7183
6783
  export = CloudantV1;