@ibm-cloud/cloudant 0.12.15 → 0.12.16
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 +14 -14
- package/cloudant/features/changesFollower.d.ts +4 -2
- package/cloudant/features/changesFollower.js +6 -3
- package/cloudant/features/changesFollower.js.map +1 -1
- package/cloudant/features/changesResultIterator.js +3 -1
- package/cloudant/features/changesResultIterator.js.map +1 -1
- package/cloudant/features/pagination/pagination.d.ts +10 -2
- package/cloudant/features/pagination/pagination.js +10 -2
- package/cloudant/features/pagination/pagination.js.map +1 -1
- package/cloudant/v1.d.ts +10 -4
- package/cloudant/v1.js +10 -4
- package/cloudant/v1.js.map +1 -1
- package/lib/common.js +4 -2
- package/lib/common.js.map +1 -1
- package/lib/errorResponseInterceptor.js +1 -0
- package/lib/errorResponseInterceptor.js.map +1 -1
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
[](https://github.com/IBM/cloudant-node-sdk/releases/latest)
|
|
3
3
|
[](https://ibm.github.io/cloudant-node-sdk/)
|
|
4
4
|
|
|
5
|
-
# IBM Cloudant Node.js SDK Version 0.12.
|
|
5
|
+
# IBM Cloudant Node.js SDK Version 0.12.16
|
|
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).
|
|
@@ -68,8 +68,8 @@ project:
|
|
|
68
68
|
- Handles the authentication.
|
|
69
69
|
- Familiar user experience with IBM Cloud SDKs.
|
|
70
70
|
- Flexibility to use either built-in models or byte-based requests and responses for documents.
|
|
71
|
-
- Built-in [Changes feed follower](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
72
|
-
- Built-in [Pagination](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
71
|
+
- Built-in [Changes feed follower](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Changes_Follower.md)
|
|
72
|
+
- Built-in [Pagination](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Pagination.md)
|
|
73
73
|
- `Promise` based design with asynchronous HTTP requests.
|
|
74
74
|
- Use either as native JavaScript or take advantage of TypeScript models.
|
|
75
75
|
- Transparently compresses request and response bodies.
|
|
@@ -99,16 +99,16 @@ account.
|
|
|
99
99
|
|
|
100
100
|
There are several ways to **set** these authentication properties:
|
|
101
101
|
|
|
102
|
-
1. As [environment variables](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
103
|
-
2. The [programmatic approach](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
104
|
-
3. With an [external credentials file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
102
|
+
1. As [environment variables](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Authentication.md#authentication-with-environment-variables)
|
|
103
|
+
2. The [programmatic approach](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Authentication.md#programmatic-authentication)
|
|
104
|
+
3. With an [external credentials file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Authentication.md#authentication-with-external-configuration)
|
|
105
105
|
|
|
106
106
|
The following section describes the different authentication types and provides environment variable examples.
|
|
107
107
|
Examples for other configuration methods are available by following the provided links.
|
|
108
108
|
|
|
109
109
|
### Authentication
|
|
110
110
|
|
|
111
|
-
Consult the [authentication document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
111
|
+
Consult the [authentication document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Authentication.md)
|
|
112
112
|
for comprehensive details of all the available authentication methods and how to configure them with environment settings
|
|
113
113
|
or programmatically.
|
|
114
114
|
|
|
@@ -154,10 +154,10 @@ service.getAllDbs().then(response => {
|
|
|
154
154
|
});
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
[More tutorial examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
157
|
+
[More tutorial examples](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Examples.md) for creating a database
|
|
158
158
|
and document create, read, update and delete operations.
|
|
159
159
|
|
|
160
|
-
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
160
|
+
For a complete list of code examples, see the [examples directory](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/examples#examples-for-node).
|
|
161
161
|
|
|
162
162
|
### Error handling
|
|
163
163
|
|
|
@@ -181,7 +181,7 @@ Response byte stream is supported in functions with the suffix of `AsStream`.
|
|
|
181
181
|
The returned byte stream allows the response body to be consumed
|
|
182
182
|
without triggering JSON unmarshalling that is typically performed by the SDK.
|
|
183
183
|
|
|
184
|
-
The [update document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
184
|
+
The [update document](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs/Examples.md#3-update-your-previously-created-document) section
|
|
185
185
|
contains examples for both request and response byte stream cases.
|
|
186
186
|
|
|
187
187
|
The API reference contains further examples of using byte streams.
|
|
@@ -197,7 +197,7 @@ Expand them to see examples of:
|
|
|
197
197
|
|
|
198
198
|
### Further resources
|
|
199
199
|
|
|
200
|
-
- [Cloudant Node.js SDK feature docs](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
200
|
+
- [Cloudant Node.js SDK feature docs](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/docs)
|
|
201
201
|
- [Cloudant API docs](https://cloud.ibm.com/apidocs/cloudant?code=node):
|
|
202
202
|
API reference including usage examples for Cloudant Node.js SDK API.
|
|
203
203
|
- [TypeDoc](https://ibm.github.io/cloudant-node-sdk/):
|
|
@@ -282,7 +282,7 @@ If you encounter an issue with the project, you are welcome to submit a
|
|
|
282
282
|
|
|
283
283
|
Before you submit a bug report, search for
|
|
284
284
|
[similar issues](https://github.com/IBM/cloudant-node-sdk/issues?q=is%3Aissue) and review the
|
|
285
|
-
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
285
|
+
[KNOWN_ISSUES file](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/KNOWN_ISSUES.md) to verify that your issue hasn't been reported yet.
|
|
286
286
|
|
|
287
287
|
Please consult the [security policy](https://github.com/IBM/cloudant-node-sdk/security/policy) before opening security related issues.
|
|
288
288
|
|
|
@@ -312,8 +312,8 @@ Find more open source projects on the [IBM GitHub](http://ibm.github.io/) page.
|
|
|
312
312
|
|
|
313
313
|
## Contributing
|
|
314
314
|
|
|
315
|
-
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
315
|
+
For more information, see [CONTRIBUTING](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/CONTRIBUTING.md).
|
|
316
316
|
|
|
317
317
|
## License
|
|
318
318
|
|
|
319
|
-
This SDK is released under the Apache 2.0 license. To read the full text of the license, see [LICENSE](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.
|
|
319
|
+
This SDK is released under the Apache 2.0 license. To read the full text of the license, see [LICENSE](https://github.com/IBM/cloudant-node-sdk/tree/v0.12.16/LICENSE).
|
|
@@ -79,7 +79,8 @@ export declare class ChangesFollower {
|
|
|
79
79
|
* The end conditions are:
|
|
80
80
|
* * a terminal error (e.g. unauthorized client).
|
|
81
81
|
* * transient errors occur for longer than the error suppression duration.
|
|
82
|
-
* * the number of changes received reaches the limit specified in the
|
|
82
|
+
* * the number of changes received reaches the limit specified in the
|
|
83
|
+
* {@link CloudantV1.PostChangesParams} used to instantiate this {@link ChangesFollower}.
|
|
83
84
|
* * {@link stop} is called.
|
|
84
85
|
*
|
|
85
86
|
* The same change may be received more than once.
|
|
@@ -97,7 +98,8 @@ export declare class ChangesFollower {
|
|
|
97
98
|
* The end conditions are:
|
|
98
99
|
* * a terminal error (e.g. unauthorized client).
|
|
99
100
|
* * transient errors occur for longer than the error suppression duration.
|
|
100
|
-
* * the number of changes received reaches the limit specified in the
|
|
101
|
+
* * the number of changes received reaches the limit specified in the
|
|
102
|
+
* {@link CloudantV1.PostChangesParams} used to instantiate this {@link ChangesFollower}.
|
|
101
103
|
* * {@link stop} is called.
|
|
102
104
|
*
|
|
103
105
|
* The same change may be received more than once.
|
|
@@ -113,7 +113,8 @@ class ChangesFollower {
|
|
|
113
113
|
const readTimeout = this.client.getTimeout();
|
|
114
114
|
if (readTimeout > 0 &&
|
|
115
115
|
readTimeout < changesParamsHelper_1.ChangesParamsHelper.MIN_CLIENT_TIMEOUT) {
|
|
116
|
-
throw new Error(
|
|
116
|
+
throw new Error('To use ChangesFollower the client read timeout must be at least ' +
|
|
117
|
+
`${changesParamsHelper_1.ChangesParamsHelper.MIN_CLIENT_TIMEOUT} ms. The client read timeout is ${readTimeout} ms.`);
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
/**
|
|
@@ -122,7 +123,8 @@ class ChangesFollower {
|
|
|
122
123
|
* The end conditions are:
|
|
123
124
|
* * a terminal error (e.g. unauthorized client).
|
|
124
125
|
* * transient errors occur for longer than the error suppression duration.
|
|
125
|
-
* * the number of changes received reaches the limit specified in the
|
|
126
|
+
* * the number of changes received reaches the limit specified in the
|
|
127
|
+
* {@link CloudantV1.PostChangesParams} used to instantiate this {@link ChangesFollower}.
|
|
126
128
|
* * {@link stop} is called.
|
|
127
129
|
*
|
|
128
130
|
* The same change may be received more than once.
|
|
@@ -142,7 +144,8 @@ class ChangesFollower {
|
|
|
142
144
|
* The end conditions are:
|
|
143
145
|
* * a terminal error (e.g. unauthorized client).
|
|
144
146
|
* * transient errors occur for longer than the error suppression duration.
|
|
145
|
-
* * the number of changes received reaches the limit specified in the
|
|
147
|
+
* * the number of changes received reaches the limit specified in the
|
|
148
|
+
* {@link CloudantV1.PostChangesParams} used to instantiate this {@link ChangesFollower}.
|
|
146
149
|
* * {@link stop} is called.
|
|
147
150
|
*
|
|
148
151
|
* The same change may be received more than once.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changesFollower.js","sourceRoot":"","sources":["../../../cloudant/features/changesFollower.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,6CAAiD;AAOjD,qCAAkC;AAClC,+DAAkE;AAClE,mEAAwE;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAa,eAAe;IAC1B,wBAAwB;IACP,MAAM,CAAa;IACnB,MAAM,CAAoB;IAC1B,cAAc,CAAU;IACjC,KAAK,CAAS;IACd,qBAAqB,CAAgC;IAE7D;;;;;;;;;;;OAWG;IACH,YACE,MAAkB,EAClB,MAAoC,EACpC,cAAuB;QAEvB,2BAA2B;QAC3B,yCAAmB,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,6DAA6D;QAC7D,IAAI,CAAC,MAAM,GAAG,yCAAmB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,cAAc,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACpE,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,IAAI,cAAc,KAAK,IAAI,EAAE,CAAC;YAC5D,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC;QACzC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACvC,CAAC;QACD,gCAAgC;QAChC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAC7C,IACE,WAAW,GAAG,CAAC;YACf,WAAW,GAAG,yCAAmB,CAAC,kBAAkB,EACpD,CAAC;YACD,MAAM,IAAI,KAAK,CACb,
|
|
1
|
+
{"version":3,"file":"changesFollower.js","sourceRoot":"","sources":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AAqB,EAAE,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF;AA3ID,0CA2IC"}
|
|
@@ -200,7 +200,9 @@ class ChangesResultIterableIterator {
|
|
|
200
200
|
this.logger.verbose(`ChangesResultStream stream: ${err.message}`);
|
|
201
201
|
throw err;
|
|
202
202
|
default:
|
|
203
|
-
err.message =
|
|
203
|
+
err.message =
|
|
204
|
+
`${err.message}\nMeanwhile this other error happened: ` +
|
|
205
|
+
`No implementation available for TransientErrorSuppression of ${this.transientErrorSuppression}.`;
|
|
204
206
|
throw err;
|
|
205
207
|
}
|
|
206
208
|
switch (err.code) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changesResultIterator.js","sourceRoot":"","sources":["../../../cloudant/features/changesResultIterator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2DAAkD;AAClD,yCAAsC;AACtC,+DAAkE;AAGlE,IAAK,yBAIJ;AAJD,WAAK,yBAAyB;IAC5B,6EAAM,CAAA;IACN,2EAAK,CAAA;IACL,2EAAK,CAAA;AACP,CAAC,EAJI,yBAAyB,KAAzB,yBAAyB,QAI7B;AAED,MAAa,6BAA6B;IACvB,cAAc,GAAG,IAAA,qBAAS,EAAC,UAAU,CAAC,CAAC;IACvC,WAAW,GAAG,+BAA+B,CAAC;IAC9C,MAAM,CAAa;IACnB,UAAU,GAA6C;QACtE,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,SAAS;KACjB,CAAC;IACe,cAAc,CAAU;IACxB,MAAM,GAAG,IAAA,iCAAY,EAAC,mBAAmB,CAAC,CAAC;IAC3C,IAAI,CAAO;IACX,cAAc,CAAgB;IAC9B,yBAAyB,CAA4B;IACrD,SAAS,GAAW,GAAG,CAAC;IACxB,YAAY,GAAW,IAAI,CAAC,KAAK,CAChD,IAAI,CAAC,IAAI,CAAC,yCAAmB,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,CAAC,CACjE,CAAC;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;gBACvC,KAAK,yBAAyB,CAAC,MAAM;oBACnC,MAAM;gBACR,KAAK,yBAAyB,CAAC,KAAK;oBAClC,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;wBAC7D,MAAM;oBACR,CAAC;oBACD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,CAAC,CAAC;gBAC1D,8DAA8D;gBAC9D,eAAe;gBACf,KAAK,yBAAyB,CAAC,KAAK;oBAClC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,+BAA+B,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;oBAClE,MAAM,GAAG,CAAC;gBACZ;oBACE,GAAG,CAAC,OAAO,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"changesResultIterator.js","sourceRoot":"","sources":["../../../cloudant/features/changesResultIterator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,2DAAkD;AAClD,yCAAsC;AACtC,+DAAkE;AAGlE,IAAK,yBAIJ;AAJD,WAAK,yBAAyB;IAC5B,6EAAM,CAAA;IACN,2EAAK,CAAA;IACL,2EAAK,CAAA;AACP,CAAC,EAJI,yBAAyB,KAAzB,yBAAyB,QAI7B;AAED,MAAa,6BAA6B;IACvB,cAAc,GAAG,IAAA,qBAAS,EAAC,UAAU,CAAC,CAAC;IACvC,WAAW,GAAG,+BAA+B,CAAC;IAC9C,MAAM,CAAa;IACnB,UAAU,GAA6C;QACtE,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,SAAS;KACjB,CAAC;IACe,cAAc,CAAU;IACxB,MAAM,GAAG,IAAA,iCAAY,EAAC,mBAAmB,CAAC,CAAC;IAC3C,IAAI,CAAO;IACX,cAAc,CAAgB;IAC9B,yBAAyB,CAA4B;IACrD,SAAS,GAAW,GAAG,CAAC;IACxB,YAAY,GAAW,IAAI,CAAC,KAAK,CAChD,IAAI,CAAC,IAAI,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;wBACX,KAAK,EAAE;4BACL,OAAO,EAAE,IAAI,CAAC,KAAK;4BACnB,OAAO,EAAE,IAAI,CAAC,OAAO;4BACrB,OAAO,EAAE,EAAE;yBACZ;qBACF,CAAC;oBACJ,IAAI,QAAgB,CAAC;oBACrB,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;wBACnC,mDAAmD;wBACnD,QAAQ,GAAG,yCAAmB,CAAC,gBAAgB,CAAC;oBAClD,CAAC;yBAAM,CAAC;wBACN,QAAQ,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;oBAC9C,CAAC;oBACD,MAAM,KAAK,GAAW,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;oBAC/D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,KAAK,MAAM,CAAC,CAAC;oBAClD,IAAI,CAAC,KAAK,IAAI,CAAC,CAAC;oBAChB,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;wBAC1C,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;wBAC9D,OAAO,yBAAyB,CAAC;oBACnC,CAAC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC,CAAC;aACD,OAAO,CAAC,GAAG,EAAE;YACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;YAC9C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACnB,wDAAwD;YACxD,kBAAkB,EAAE,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;;AApQH,sEAqQC"}
|
|
@@ -45,7 +45,11 @@ export declare class Pagination<I> {
|
|
|
45
45
|
*
|
|
46
46
|
* This function is useful for handling pages in an enhanced for loop e.g.
|
|
47
47
|
* ```ts
|
|
48
|
-
* for await (const row: ReadonlyArray<DocsResultRow> of Pagination.newPagination(
|
|
48
|
+
* for await (const row: ReadonlyArray<DocsResultRow> of Pagination.newPagination(
|
|
49
|
+
* client,
|
|
50
|
+
* PagerType.POST_ALL_DOCS,
|
|
51
|
+
* allDocsParams
|
|
52
|
+
* ).pages()){
|
|
49
53
|
* ...
|
|
50
54
|
* }
|
|
51
55
|
* ```
|
|
@@ -64,7 +68,11 @@ export declare class Pagination<I> {
|
|
|
64
68
|
*
|
|
65
69
|
* This function is useful for handling rows in an enhanced for loop e.g.
|
|
66
70
|
* ```ts
|
|
67
|
-
* for await (const row: DocsResultRow of Pagination.newPagination(
|
|
71
|
+
* for await (const row: DocsResultRow of Pagination.newPagination(
|
|
72
|
+
* client,
|
|
73
|
+
* PagerType.POST_ALL_DOCS,
|
|
74
|
+
* allDocsParams
|
|
75
|
+
* ).rows()) {
|
|
68
76
|
* ...
|
|
69
77
|
* }
|
|
70
78
|
* ```
|
|
@@ -61,7 +61,11 @@ class Pagination {
|
|
|
61
61
|
*
|
|
62
62
|
* This function is useful for handling pages in an enhanced for loop e.g.
|
|
63
63
|
* ```ts
|
|
64
|
-
* for await (const row: ReadonlyArray<DocsResultRow> of Pagination.newPagination(
|
|
64
|
+
* for await (const row: ReadonlyArray<DocsResultRow> of Pagination.newPagination(
|
|
65
|
+
* client,
|
|
66
|
+
* PagerType.POST_ALL_DOCS,
|
|
67
|
+
* allDocsParams
|
|
68
|
+
* ).pages()){
|
|
65
69
|
* ...
|
|
66
70
|
* }
|
|
67
71
|
* ```
|
|
@@ -84,7 +88,11 @@ class Pagination {
|
|
|
84
88
|
*
|
|
85
89
|
* This function is useful for handling rows in an enhanced for loop e.g.
|
|
86
90
|
* ```ts
|
|
87
|
-
* for await (const row: DocsResultRow of Pagination.newPagination(
|
|
91
|
+
* for await (const row: DocsResultRow of Pagination.newPagination(
|
|
92
|
+
* client,
|
|
93
|
+
* PagerType.POST_ALL_DOCS,
|
|
94
|
+
* allDocsParams
|
|
95
|
+
* ).rows()) {
|
|
88
96
|
* ...
|
|
89
97
|
* }
|
|
90
98
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../cloudant/features/pagination/pagination.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6CAAiD;AAmBjD,mDAAgD;AAChD,+DAA4D;AAC5D,sCAAmC;AAEnC,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,2EAAwE;AACxE,+EAA4E;AAC5E,yDAAsD;AACtD,6DAA0D;AAC1D,2EAAwE;AAExE;;;;;;;;;;;;GAYG;AACH,MAAa,UAAU;IACb,oBAAoB,CAAkB;IAE9C,YAAoB,oBAAqC;QACvD,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAED;;;;;;OAMG;IACH,KAAK;QACH,OAAO,IAAI,6BAAa,CAAI,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../cloudant/features/pagination/pagination.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,6CAAiD;AAmBjD,mDAAgD;AAChD,+DAA4D;AAC5D,sCAAmC;AAEnC,qEAAkE;AAClE,yDAAsD;AACtD,iFAA8E;AAC9E,2EAAwE;AACxE,+EAA4E;AAC5E,yDAAsD;AACtD,6DAA0D;AAC1D,2EAAwE;AAExE;;;;;;;;;;;;GAYG;AACH,MAAa,UAAU;IACb,oBAAoB,CAAkB;IAE9C,YAAoB,oBAAqC;QACvD,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACnD,CAAC;IAED;;;;;;OAMG;IACH,KAAK;QACH,OAAO,IAAI,6BAAa,CAAI,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,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MAAM,EACN,MAAoC,CACrC,CACF,CAAC;YACJ,KAAK,SAAS,CAAC,mBAAmB;gBAChC,OAAO,IAAI,UAAU,CACnB,IAAI,qDAAyB,CAC3B,MAAM,EACN,MAAiC,CAClC,CACF,CAAC;YACJ,KAAK,SAAS,CAAC,qBAAqB;gBAClC,OAAO,IAAI,UAAU,CACnB,IAAI,yDAA2B,CAC7B,MAAM,EACN,MAAmC,CACpC,CACF,CAAC;YACJ,KAAK,SAAS,CAAC,mBAAmB;gBAChC,OAAO,IAAI,UAAU,CACnB,IAAI,qDAAyB,CAC3B,MAAM,EACN,MAAiC,CAClC,CACF,CAAC;YACJ,KAAK,SAAS,CAAC,WAAW;gBACxB,OAAO,IAAI,UAAU,CACnB,IAAI,uCAAkB,CAAC,MAAM,EAAE,MAA0B,CAAC,CAC3D,CAAC;YACJ,KAAK,SAAS,CAAC,SAAS;gBACtB,OAAO,IAAI,UAAU,CACnB,IAAI,mCAAgB,CAAC,MAAM,EAAE,MAAwB,CAAC,CACvD,CAAC;YACJ;gBACE,MAAM,IAAI,KAAK,CAAC,6CAA6C,IAAI,GAAG,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;CACF;AArSD,gCAqSC;AAED;;GAEG;AACH,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,2DAAa,CAAA;IACb,iEAAgB,CAAA;IAChB,mDAAS,CAAA;IACT,+EAAuB,CAAA;IACvB,uEAAmB,CAAA;IACnB,2EAAqB,CAAA;IACrB,uEAAmB,CAAA;IACnB,uDAAW,CAAA;IACX,mDAAS,CAAA;AACX,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB"}
|
package/cloudant/v1.d.ts
CHANGED
|
@@ -6362,7 +6362,10 @@ declare namespace CloudantV1 {
|
|
|
6362
6362
|
* * For a query text index default_field the default is `standard`.
|
|
6363
6363
|
*/
|
|
6364
6364
|
name: Analyzer.Constants.Name | string;
|
|
6365
|
-
/** Custom stopwords to use with the named analyzer.
|
|
6365
|
+
/** Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`,
|
|
6366
|
+
* `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for
|
|
6367
|
+
* analyzers that perform folding.
|
|
6368
|
+
*/
|
|
6366
6369
|
stopwords?: string[];
|
|
6367
6370
|
static serialize(obj: any): Analyzer.Transport;
|
|
6368
6371
|
static deserialize(obj: any): Analyzer;
|
|
@@ -6432,7 +6435,10 @@ declare namespace CloudantV1 {
|
|
|
6432
6435
|
* * For a query text index default_field the default is `standard`.
|
|
6433
6436
|
*/
|
|
6434
6437
|
name: AnalyzerConfiguration.Constants.Name | string;
|
|
6435
|
-
/** Custom stopwords to use with the named analyzer.
|
|
6438
|
+
/** Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`,
|
|
6439
|
+
* `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for
|
|
6440
|
+
* analyzers that perform folding.
|
|
6441
|
+
*/
|
|
6436
6442
|
stopwords?: string[];
|
|
6437
6443
|
/** Schema for a full text search analyzer. */
|
|
6438
6444
|
default?: Analyzer;
|
|
@@ -7162,8 +7168,8 @@ declare namespace CloudantV1 {
|
|
|
7162
7168
|
* The validation function can abort the pending document write by throwing one of two error objects:
|
|
7163
7169
|
*
|
|
7164
7170
|
* ```
|
|
7165
|
-
* // user is not authorized to make the change but may
|
|
7166
|
-
* });
|
|
7171
|
+
* // user is not authorized to make the change but may
|
|
7172
|
+
* // re-authenticate throw({ unauthorized: 'Error message here.' });
|
|
7167
7173
|
*
|
|
7168
7174
|
* // change is not allowed throw({ forbidden: 'Error message here.' });
|
|
7169
7175
|
* ```
|
package/cloudant/v1.js
CHANGED
|
@@ -7668,7 +7668,10 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
|
|
|
7668
7668
|
* * For a query text index default_field the default is `standard`.
|
|
7669
7669
|
*/
|
|
7670
7670
|
name;
|
|
7671
|
-
/** Custom stopwords to use with the named analyzer.
|
|
7671
|
+
/** Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`,
|
|
7672
|
+
* `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for
|
|
7673
|
+
* analyzers that perform folding.
|
|
7674
|
+
*/
|
|
7672
7675
|
stopwords;
|
|
7673
7676
|
static serialize(obj) {
|
|
7674
7677
|
if (obj === undefined || obj === null || typeof obj === 'string') {
|
|
@@ -7761,7 +7764,10 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
|
|
|
7761
7764
|
* * For a query text index default_field the default is `standard`.
|
|
7762
7765
|
*/
|
|
7763
7766
|
name;
|
|
7764
|
-
/** Custom stopwords to use with the named analyzer.
|
|
7767
|
+
/** Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`,
|
|
7768
|
+
* `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for
|
|
7769
|
+
* analyzers that perform folding.
|
|
7770
|
+
*/
|
|
7765
7771
|
stopwords;
|
|
7766
7772
|
/** Schema for a full text search analyzer. */
|
|
7767
7773
|
default;
|
|
@@ -9148,8 +9154,8 @@ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
|
|
|
9148
9154
|
* The validation function can abort the pending document write by throwing one of two error objects:
|
|
9149
9155
|
*
|
|
9150
9156
|
* ```
|
|
9151
|
-
* // user is not authorized to make the change but may
|
|
9152
|
-
* });
|
|
9157
|
+
* // user is not authorized to make the change but may
|
|
9158
|
+
* // re-authenticate throw({ unauthorized: 'Error message here.' });
|
|
9153
9159
|
*
|
|
9154
9160
|
* // change is not allowed throw({ forbidden: 'Error message here.' });
|
|
9155
9161
|
* ```
|