@ibm-cloud/cloudant 0.1.5 → 0.2.0

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 CHANGED
@@ -1,8 +1,8 @@
1
- [![Build Status](https://github.com/IBM/cloudant-node-sdk/actions/workflows/test.yml/badge.svg?branch=master&event=push)](https://github.com/IBM/cloudant-node-sdk/actions/workflows/test.yml)
1
+ [![Build Status](https://github.com/IBM/cloudant-node-sdk/actions/workflows/test.yml/badge.svg?branch=main&event=push)](https://github.com/IBM/cloudant-node-sdk/actions/workflows/test.yml)
2
2
  [![Release](https://img.shields.io/github/v/release/IBM/cloudant-node-sdk?include_prereleases&sort=semver)](https://github.com/IBM/cloudant-node-sdk/releases/latest)
3
3
  [![Docs](https://img.shields.io/static/v1?label=TypeDoc&message=latest&color=blue)](https://ibm.github.io/cloudant-node-sdk/)
4
4
 
5
- # IBM Cloudant Node.js SDK Version 0.1.5
5
+ # IBM Cloudant Node.js SDK Version 0.2.0
6
6
 
7
7
  IBM Cloudant Node.js SDK is a client library that interacts with the
8
8
  [IBM Cloudant APIs](https://cloud.ibm.com/apidocs/cloudant?code=node).
@@ -202,16 +202,16 @@ To learn more about how to use programmatic authentication, see the related
202
202
  documentation in the
203
203
  [Cloudant API docs](https://cloud.ibm.com/apidocs/cloudant?code=node#programmatic-authentication)
204
204
  or in the
205
- [Node.js SDK Core document](https://github.com/IBM/node-sdk-core/blob/master/Authentication.md) about authentication.
205
+ [Node.js SDK Core document](https://github.com/IBM/node-sdk-core/blob/main/Authentication.md) about authentication.
206
206
 
207
207
  ## Using the SDK
208
208
 
209
- For fundamental SDK usage information and config options, please see the common [IBM Cloud SDK](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) documentation.
209
+ For fundamental SDK usage information and config options, please see the common [IBM Cloud SDK](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md) documentation.
210
210
 
211
211
  ### Request timeout configuration
212
212
 
213
213
  No request timeout is defined, but a 2.5m connect and 2.5m read timeout is set by default. Be sure to set a request timeout appropriate to your application usage and environment.
214
- The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) section contains details on how to change the value.
214
+ The [request timeout](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md) section contains details on how to change the value.
215
215
 
216
216
  **Note:** System settings may take precedence over configured timeout values.
217
217
 
package/cloudant/v1.d.ts CHANGED
@@ -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
  ************************/
@@ -5063,202 +4939,6 @@ declare namespace CloudantV1 {
5063
4939
  index: string;
5064
4940
  headers?: OutgoingHttpHeaders;
5065
4941
  }
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
4942
  /** Parameters for the `headReplicationDocument` operation. */
5263
4943
  interface HeadReplicationDocumentParams {
5264
4944
  /** Path parameter to specify the document ID. */
@@ -6171,8 +5851,6 @@ declare namespace CloudantV1 {
6171
5851
  validate_doc_update?: string;
6172
5852
  /** Schema for design document views. */
6173
5853
  views?: JsonObject;
6174
- /** Schema for geospatial index function definitions. */
6175
- st_indexes?: JsonObject;
6176
5854
  /** DesignDocument accepts additional properties. */
6177
5855
  [propName: string]: any;
6178
5856
  }
@@ -6370,72 +6048,6 @@ declare namespace CloudantV1 {
6370
6048
  /** warning. */
6371
6049
  warning?: string;
6372
6050
  }
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
6051
  /** 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
6052
  interface IndexDefinition {
6441
6053
  /** Schema for a full text search analyzer. */
@@ -6725,6 +6337,11 @@ declare namespace CloudantV1 {
6725
6337
  use_checkpoints?: boolean;
6726
6338
  /** Schema for the user context of a session. */
6727
6339
  user_ctx?: UserContext;
6340
+ /** Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication
6341
+ * IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to
6342
+ * first replicate the winning revisions then later backfill remaining revisions with a regular replication job.
6343
+ */
6344
+ winning_revs_only?: boolean;
6728
6345
  /** Controls how many documents are processed. After each batch a checkpoint is written so this controls how
6729
6346
  * frequently checkpointing occurs.
6730
6347
  */
@@ -7163,21 +6780,5 @@ declare namespace CloudantV1 {
7163
6780
  /** Schema for any JSON type. */
7164
6781
  value: any;
7165
6782
  }
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
6783
  }
7183
6784
  export = CloudantV1;