@ibm-cloud/cloudant 0.12.7 → 0.12.8

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.
Files changed (77) hide show
  1. package/README.md +32 -1914
  2. package/auth/couchdbSessionAuthenticator.js +0 -1
  3. package/auth/couchdbSessionAuthenticator.js.map +1 -1
  4. package/auth/sessionTokenManager.js +3 -4
  5. package/auth/sessionTokenManager.js.map +1 -1
  6. package/cloudant/features/changesFollower.d.ts +0 -22
  7. package/cloudant/features/changesFollower.js +22 -18
  8. package/cloudant/features/changesFollower.js.map +1 -1
  9. package/cloudant/features/changesParamsHelper.d.ts +5 -1
  10. package/cloudant/features/changesParamsHelper.js +16 -11
  11. package/cloudant/features/changesParamsHelper.js.map +1 -1
  12. package/cloudant/features/changesResultIterator.d.ts +3 -1
  13. package/cloudant/features/changesResultIterator.js +19 -12
  14. package/cloudant/features/changesResultIterator.js.map +1 -1
  15. package/cloudant/features/pagination/allDocsBasePageIterator.d.ts +2 -3
  16. package/cloudant/features/pagination/allDocsBasePageIterator.js +1 -7
  17. package/cloudant/features/pagination/allDocsBasePageIterator.js.map +1 -1
  18. package/cloudant/features/pagination/allDocsPageIterator.d.ts +1 -2
  19. package/cloudant/features/pagination/allDocsPageIterator.js +0 -4
  20. package/cloudant/features/pagination/allDocsPageIterator.js.map +1 -1
  21. package/cloudant/features/pagination/allDocsPartitionPageIterator.d.ts +1 -2
  22. package/cloudant/features/pagination/allDocsPartitionPageIterator.js +0 -4
  23. package/cloudant/features/pagination/allDocsPartitionPageIterator.js.map +1 -1
  24. package/cloudant/features/pagination/basePageIterator.d.ts +1 -1
  25. package/cloudant/features/pagination/basePageIterator.js +7 -9
  26. package/cloudant/features/pagination/basePageIterator.js.map +1 -1
  27. package/cloudant/features/pagination/bookmarkPageIterator.d.ts +1 -4
  28. package/cloudant/features/pagination/bookmarkPageIterator.js +2 -13
  29. package/cloudant/features/pagination/bookmarkPageIterator.js.map +1 -1
  30. package/cloudant/features/pagination/designDocsPageIterator.d.ts +1 -2
  31. package/cloudant/features/pagination/designDocsPageIterator.js +0 -4
  32. package/cloudant/features/pagination/designDocsPageIterator.js.map +1 -1
  33. package/cloudant/features/pagination/findBasePageIterator.d.ts +1 -2
  34. package/cloudant/features/pagination/findBasePageIterator.js +4 -8
  35. package/cloudant/features/pagination/findBasePageIterator.js.map +1 -1
  36. package/cloudant/features/pagination/findPageIterator.d.ts +1 -2
  37. package/cloudant/features/pagination/findPageIterator.js +0 -4
  38. package/cloudant/features/pagination/findPageIterator.js.map +1 -1
  39. package/cloudant/features/pagination/findPartitionPageIterator.d.ts +1 -2
  40. package/cloudant/features/pagination/findPartitionPageIterator.js +0 -4
  41. package/cloudant/features/pagination/findPartitionPageIterator.js.map +1 -1
  42. package/cloudant/features/pagination/iteratorPager.js +2 -1
  43. package/cloudant/features/pagination/iteratorPager.js.map +1 -1
  44. package/cloudant/features/pagination/keyPageIterator.d.ts +5 -7
  45. package/cloudant/features/pagination/keyPageIterator.js +12 -18
  46. package/cloudant/features/pagination/keyPageIterator.js.map +1 -1
  47. package/cloudant/features/pagination/pagination.js +3 -2
  48. package/cloudant/features/pagination/pagination.js.map +1 -1
  49. package/cloudant/features/pagination/searchBasePageIterator.d.ts +0 -1
  50. package/cloudant/features/pagination/searchBasePageIterator.js +0 -4
  51. package/cloudant/features/pagination/searchBasePageIterator.js.map +1 -1
  52. package/cloudant/features/pagination/searchPageIterator.d.ts +1 -2
  53. package/cloudant/features/pagination/searchPageIterator.js +0 -4
  54. package/cloudant/features/pagination/searchPageIterator.js.map +1 -1
  55. package/cloudant/features/pagination/searchPartitionPageIterator.d.ts +1 -2
  56. package/cloudant/features/pagination/searchPartitionPageIterator.js +0 -4
  57. package/cloudant/features/pagination/searchPartitionPageIterator.js.map +1 -1
  58. package/cloudant/features/pagination/viewBasePageIterator.d.ts +2 -3
  59. package/cloudant/features/pagination/viewBasePageIterator.js +3 -10
  60. package/cloudant/features/pagination/viewBasePageIterator.js.map +1 -1
  61. package/cloudant/features/pagination/viewPageIterator.d.ts +1 -2
  62. package/cloudant/features/pagination/viewPageIterator.js +0 -4
  63. package/cloudant/features/pagination/viewPageIterator.js.map +1 -1
  64. package/cloudant/features/pagination/viewPartitionPageIterator.d.ts +1 -2
  65. package/cloudant/features/pagination/viewPartitionPageIterator.js +0 -4
  66. package/cloudant/features/pagination/viewPartitionPageIterator.js.map +1 -1
  67. package/cloudant/v1.d.ts +12 -12
  68. package/cloudant/v1.js +4 -4
  69. package/cloudant/v1.js.map +1 -1
  70. package/index.js.map +1 -1
  71. package/lib/cloudantBaseService.d.ts +1 -1
  72. package/lib/cloudantBaseService.js +2 -1
  73. package/lib/cloudantBaseService.js.map +1 -1
  74. package/lib/getAuthenticatorFromEnvCloudantExtension.d.ts +1 -1
  75. package/lib/getAuthenticatorFromEnvCloudantExtension.js +1 -1
  76. package/lib/getAuthenticatorFromEnvCloudantExtension.js.map +1 -1
  77. package/package.json +7 -8
package/cloudant/v1.d.ts CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
17
17
  import { AbortSignal, SDKLogger, UserOptions } from 'ibm-cloud-sdk-core';
18
- import CloudantBaseService from '../lib/cloudantBaseService';
18
+ import { CloudantBaseService } from '../lib/cloudantBaseService';
19
19
  /**
20
20
  * NoSQL database based on Apache CouchDB
21
21
  *
@@ -7341,7 +7341,7 @@ declare namespace CloudantV1 {
7341
7341
  /** Options used for the request. */
7342
7342
  opts: ExplainResultOpts;
7343
7343
  /** Schema for any JSON type. */
7344
- partitioned?: any;
7344
+ partitioned?: any | null;
7345
7345
  /** JSON object describing criteria used to select documents. The selector specifies fields in the document, and
7346
7346
  * provides an expression to evaluate with the field content or other data.
7347
7347
  *
@@ -7405,11 +7405,11 @@ declare namespace CloudantV1 {
7405
7405
  */
7406
7406
  export class ExplainResultMrArgs {
7407
7407
  /** Schema for any JSON type. */
7408
- conflicts: any;
7408
+ conflicts: any | null;
7409
7409
  /** Direction parameter passed to the underlying view. */
7410
7410
  direction: ExplainResultMrArgs.Constants.Direction | string;
7411
7411
  /** Schema for any JSON type. */
7412
- endKey: any;
7412
+ endKey: any | null;
7413
7413
  /** A parameter that specifies whether to include the full content of the documents in the response in the
7414
7414
  * underlying view.
7415
7415
  */
@@ -7425,9 +7425,9 @@ declare namespace CloudantV1 {
7425
7425
  */
7426
7426
  stable: boolean;
7427
7427
  /** Schema for any JSON type. */
7428
- startKey?: any;
7428
+ startKey?: any | null;
7429
7429
  /** Schema for any JSON type. */
7430
- update: any;
7430
+ update: any | null;
7431
7431
  /** The type of the underlying view. */
7432
7432
  viewType: ExplainResultMrArgs.Constants.ViewType | string;
7433
7433
  static serialize(obj: any): ExplainResultMrArgs.Transport;
@@ -7484,7 +7484,7 @@ declare namespace CloudantV1 {
7484
7484
  /** Skip used in the request query. */
7485
7485
  skip: number;
7486
7486
  /** Schema for any JSON type. */
7487
- sort: any;
7487
+ sort: any | null;
7488
7488
  /** Stable used in the request query. */
7489
7489
  stable: boolean;
7490
7490
  /** Deprecated: Stale used in the request query. */
@@ -9093,7 +9093,7 @@ declare namespace CloudantV1 {
9093
9093
  */
9094
9094
  updateSeq?: boolean;
9095
9095
  /** Schema for any JSON type. */
9096
- endKey?: any;
9096
+ endKey?: any | null;
9097
9097
  /** Schema for a document ID. */
9098
9098
  endKeyDocId?: string;
9099
9099
  /** Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the
@@ -9107,7 +9107,7 @@ declare namespace CloudantV1 {
9107
9107
  */
9108
9108
  groupLevel?: number;
9109
9109
  /** Schema for any JSON type. */
9110
- key?: any;
9110
+ key?: any | null;
9111
9111
  /** Parameter to specify returning only documents that match any of the specified keys. A JSON array of keys
9112
9112
  * that match the key type emitted by the view function.
9113
9113
  */
@@ -9129,7 +9129,7 @@ declare namespace CloudantV1 {
9129
9129
  */
9130
9130
  stable?: boolean;
9131
9131
  /** Schema for any JSON type. */
9132
- startKey?: any;
9132
+ startKey?: any | null;
9133
9133
  /** Schema for a document ID. */
9134
9134
  startKeyDocId?: string;
9135
9135
  /** Parameter to specify whether or not the view in question should be updated prior to responding to the user.
@@ -9214,9 +9214,9 @@ declare namespace CloudantV1 {
9214
9214
  /** Schema for a document ID. */
9215
9215
  id?: string;
9216
9216
  /** Schema for any JSON type. */
9217
- key: any;
9217
+ key: any | null;
9218
9218
  /** Schema for any JSON type. */
9219
- value: any;
9219
+ value: any | null;
9220
9220
  static serialize(obj: any): ViewResultRow.Transport;
9221
9221
  static deserialize(obj: any): ViewResultRow;
9222
9222
  }
package/cloudant/v1.js CHANGED
@@ -20,8 +20,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  const extend_1 = __importDefault(require("extend"));
21
21
  const ibm_cloud_sdk_core_1 = require("ibm-cloud-sdk-core");
22
22
  const common_1 = require("../lib/common");
23
- const cloudantBaseService_1 = __importDefault(require("../lib/cloudantBaseService"));
24
- const getAuthenticatorFromEnvCloudantExtension_1 = __importDefault(require("../lib/getAuthenticatorFromEnvCloudantExtension"));
23
+ const cloudantBaseService_1 = require("../lib/cloudantBaseService");
24
+ const getAuthenticatorFromEnvCloudantExtension_1 = require("../lib/getAuthenticatorFromEnvCloudantExtension");
25
25
  /* eslint @typescript-eslint/no-use-before-define: 0 */
26
26
  /* eslint max-classes-per-file: 0 */
27
27
  /**
@@ -29,7 +29,7 @@ const getAuthenticatorFromEnvCloudantExtension_1 = __importDefault(require("../l
29
29
  *
30
30
  * See: https://cloud.ibm.com/docs/services/Cloudant/
31
31
  */
32
- class CloudantV1 extends cloudantBaseService_1.default {
32
+ class CloudantV1 extends cloudantBaseService_1.CloudantBaseService {
33
33
  static _logger = (0, ibm_cloud_sdk_core_1.getNewLogger)('CloudantV1');
34
34
  static DEFAULT_SERVICE_URL = 'https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud';
35
35
  static DEFAULT_SERVICE_NAME = 'cloudant';
@@ -51,7 +51,7 @@ class CloudantV1 extends cloudantBaseService_1.default {
51
51
  options.serviceName = this.DEFAULT_SERVICE_NAME;
52
52
  }
53
53
  if (!options.authenticator) {
54
- options.authenticator = (0, getAuthenticatorFromEnvCloudantExtension_1.default)(options.serviceName);
54
+ options.authenticator = (0, getAuthenticatorFromEnvCloudantExtension_1.getAuthenticatorFromEnvCloudantExtension)(options.serviceName);
55
55
  }
56
56
  const service = new CloudantV1(options);
57
57
  service.configureService(options.serviceName);