@ibm-cloud/cloudant 0.0.25 → 0.1.2

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
@@ -2,7 +2,7 @@
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.0.25
5
+ # IBM Cloudant Node.js SDK Version 0.1.2
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).
@@ -252,17 +252,17 @@ import {CloudantV1} from "@ibm-cloud/cloudant";
252
252
  ```
253
253
  [embedmd]:# (test/examples/src/ts/GetInfoFromExistingDatabase.ts /\/\/ 1./ $)
254
254
  ```ts
255
- // 1. Create a Cloudant client with "EXAMPLES" service name ===================
255
+ // 1. Create a Cloudant client with "EXAMPLES" service name =====================
256
256
  const client = CloudantV1.newInstance({ serviceName: 'EXAMPLES' });
257
257
 
258
- // 2. Get server information ==================================================
258
+ // 2. Get server information ====================================================
259
259
  // call service without parameters:
260
260
  client.getServerInformation().then((serverInformation) => {
261
261
  const { version } = serverInformation.result;
262
262
  console.log(`Server version ${version}`);
263
263
  });
264
264
 
265
- // 3. Get database information for "animaldb" =================================
265
+ // 3. Get database information for "animaldb" ===================================
266
266
  const dbName = 'animaldb';
267
267
 
268
268
  // call service with embedded parameters:
@@ -270,13 +270,13 @@ client.getDatabaseInformation({ db: dbName }).then((dbInfo) => {
270
270
  const documentCount = dbInfo.result.doc_count;
271
271
  const dbNameResult = dbInfo.result.db_name;
272
272
 
273
- // 4. Show document count in database =================================
273
+ // 4. Show document count in database =========================================
274
274
  console.log(
275
275
  `Document count in "${dbNameResult}" database is ${documentCount}.`
276
276
  );
277
277
  });
278
278
 
279
- // 5. Get zebra document out of the database by document id ===================
279
+ // 5. Get zebra document out of the database by document id =====================
280
280
  const getDocParams: CloudantV1.GetDocumentParams = {
281
281
  db: dbName,
282
282
  docId: 'zebra',
@@ -318,7 +318,7 @@ const getInfoFromExistingDatabase = async () => {
318
318
  const documentCount = dbInfo.result.doc_count;
319
319
  const dbNameResult = dbInfo.result.db_name;
320
320
 
321
- // 4. Show document count in database =================================
321
+ // 4. Show document count in database =========================================
322
322
  console.log(
323
323
  `Document count in "${dbNameResult}" database is ${documentCount}.`
324
324
  );
@@ -389,10 +389,10 @@ interface OrderDocument extends CloudantV1.Document {
389
389
  _rev?: string;
390
390
  }
391
391
 
392
- // 1. Create a client with `CLOUDANT` default service name ================
392
+ // 1. Create a client with `CLOUDANT` default service name ======================
393
393
  const client = CloudantV1.newInstance({});
394
394
 
395
- // 2. Create a database =======================================================
395
+ // 2. Create a database =========================================================
396
396
  const exampleDbName = 'orders';
397
397
 
398
398
  // Try to create database if it doesn't exist
@@ -411,26 +411,39 @@ const createDb = client
411
411
  }
412
412
  });
413
413
 
414
- // 3. Create a document =======================================================
414
+ // 3. Create a document =========================================================
415
415
  // Create a document object with "example" id
416
416
  const exampleDocId = 'example';
417
417
 
418
- // set required _id property on exampleDocument:
418
+ // Setting `_id` for the document is optional when postDocument function is used for CREATE.
419
+ // When `_id` is not provided the server will generate one for your document.
419
420
  const exampleDocument: OrderDocument = { _id: exampleDocId };
420
421
 
421
422
  // Add "name" and "joined" fields to the document
422
423
  exampleDocument.name = 'Bob Smith';
423
- exampleDocument.joined = '2019-01-24T10:42:99.000Z';
424
+ exampleDocument.joined = '2019-01-24T10:42:59.000Z';
424
425
 
425
- // Save the document in the database
426
+ // Save the document in the database with "postDocument" function
426
427
  createDb.then(() => {
427
428
  client
428
429
  .postDocument({
429
430
  db: exampleDbName,
430
431
  document: exampleDocument,
431
432
  })
433
+ // ==========================================================================
434
+ // Note: saving the document can also be done with the "putDocument"
435
+ // function. In this case `docId` is required for a CREATE operation:
436
+ /*
437
+ .putDocument({
438
+ db: exampleDbName,
439
+ docId: exampleDocId,
440
+ document: exampleDocument,
441
+ })
442
+ */
443
+ // ==========================================================================
432
444
  .then((createDocumentResponse) => {
433
- // Keep track with the revision number of the document object
445
+ // Keeping track of the revision number of the document object
446
+ // is necessary for further UPDATE/DELETE operations:
434
447
  exampleDocument._rev = createDocumentResponse.result.rev;
435
448
  console.log(
436
449
  'You have created the document:\n' +
@@ -450,7 +463,7 @@ const { CloudantV1 } = require('@ibm-cloud/cloudant');
450
463
  [embedmd]:# (test/examples/src/js/CreateDbAndDoc.js /const createDbAndDoc/ /createDbAndDoc\(\);\n\}/)
451
464
  ```js
452
465
  const createDbAndDoc = async () => {
453
- // 1. Create a client with `CLOUDANT` default service name ================
466
+ // 1. Create a client with `CLOUDANT` default service name ====================
454
467
  const client = CloudantV1.newInstance({});
455
468
 
456
469
  // 2. Create a database =======================================================
@@ -478,19 +491,32 @@ const createDbAndDoc = async () => {
478
491
  // Create a document object with "example" id
479
492
  const exampleDocId = 'example';
480
493
 
494
+ // Setting `_id` for the document is optional when "postDocument" function is used for CREATE.
495
+ // When `_id` is not provided the server will generate one for your document.
481
496
  const exampleDocument = { _id: exampleDocId };
482
497
 
483
498
  // Add "name" and "joined" fields to the document
484
499
  exampleDocument['name'] = 'Bob Smith';
485
- exampleDocument.joined = '2019-01-24T10:42:99.000Z';
500
+ exampleDocument.joined = '2019-01-24T10:42:59.000Z';
486
501
 
487
- // Save the document in the database
502
+ // Save the document in the database with "postDocument" function
488
503
  const createDocumentResponse = await client.postDocument({
489
504
  db: exampleDbName,
490
505
  document: exampleDocument,
491
506
  });
492
507
 
493
- // Keep track with the revision number of the document object
508
+ // ==========================================================================
509
+ // Note: saving the document can also be done with the "putDocument"
510
+ // function. In this case `docId` is required for a CREATE operation:
511
+ /* const createDocumentResponse = await client.putDocument({
512
+ db: exampleDbName,
513
+ docId: exampleDocId,
514
+ document: exampleDocument,
515
+ }); */
516
+ // ==========================================================================
517
+
518
+ // Keeping track of the revision number of the document object
519
+ // is necessary for further UPDATE/DELETE operations:
494
520
  exampleDocument._rev = createDocumentResponse.result.rev;
495
521
  console.log(
496
522
  'You have created the document:\n' +
@@ -515,7 +541,7 @@ You have created the document:
515
541
  {
516
542
  "_id": "example",
517
543
  "name": "Bob Smith",
518
- "joined": "2019-01-24T10:42:99.000Z",
544
+ "joined": "2019-01-24T10:42:59.000Z",
519
545
  "_rev": "1-1b403633540686aa32d013fda9041a5d"
520
546
  }
521
547
  ```
@@ -546,9 +572,9 @@ interface OrderDocument extends CloudantV1.Document {
546
572
  _rev?: string;
547
573
  }
548
574
 
549
- // 1. Create a client with `CLOUDANT` default service name ================
575
+ // 1. Create a client with `CLOUDANT` default service name ======================
550
576
  const client = CloudantV1.newInstance({});
551
- // 2. Update the document =====================================================
577
+ // 2. Update the document =======================================================
552
578
  // Set the options to get the document out of the database if it exists
553
579
  const exampleDbName = 'orders';
554
580
 
@@ -558,14 +584,18 @@ const getDocParams: CloudantV1.GetDocumentParams = {
558
584
  db: exampleDbName,
559
585
  };
560
586
 
561
- // Note: for response byte stream use:
562
- // const getdocAsStreamParam: CloudantV1.GetDocumentAsStreamParams = {
563
- // docId: 'example',
564
- // db: exampleDbName,
565
- // };
566
- // client
567
- // .getDocumentAsStream(getdocAsStreamParam)
568
- // .then((documentAsByteStream) => {});
587
+ // ==============================================================================
588
+ // Note : for response byte stream use:
589
+ /*
590
+ const getdocAsStreamParam: CloudantV1.GetDocumentAsStreamParams = {
591
+ docId: 'example',
592
+ db: exampleDbName,
593
+ };
594
+ client
595
+ .getDocumentAsStream(getdocAsStreamParam)
596
+ .then((documentAsByteStream) => {...});
597
+ */
598
+ // ==============================================================================
569
599
 
570
600
  client
571
601
  .getDocument(getDocParams)
@@ -582,12 +612,29 @@ client
582
612
  // Update the document in the database
583
613
  client
584
614
  .postDocument({ db: exampleDbName, document })
585
- // Note: for request byte stream use:
615
+ // ========================================================================
616
+ // Note 1: for request byte stream use:
586
617
  // .postDocument(
587
618
  // {db: exampleDbName, document: documentAsByteStream}
588
619
  // )
620
+ // ========================================================================
621
+
622
+ // ========================================================================
623
+ // Note 2: updating the document can also be done with the "putDocument" function.
624
+ // `docId` and `rev` are required for an UPDATE operation,
625
+ // but `rev` can be provided in the document object as `_rev` too:
626
+ /*
627
+ .putDocument({
628
+ db: exampleDbName,
629
+ docId: document._id, // docId is a required parameter
630
+ rev: document._rev,
631
+ document, // _rev in the document object CAN replace above `rev` parameter
632
+ })
633
+ */
634
+ // ========================================================================
589
635
  .then((res) => {
590
- // Keeping track with the revision number of the document object:
636
+ // Keeping track of the latest revision number of the document object
637
+ // is necessary for further UPDATE/DELETE operations:
591
638
  document._rev = res.result.rev;
592
639
  console.log(
593
640
  `You have updated the document:\n${JSON.stringify(document, null, 2)}`
@@ -614,7 +661,7 @@ const { CloudantV1 } = require('@ibm-cloud/cloudant');
614
661
  [embedmd]:# (test/examples/src/js/UpdateDoc.js /const updateDoc/ /updateDoc\(\);\n\}/)
615
662
  ```js
616
663
  const updateDoc = async () => {
617
- // 1. Create a client with `CLOUDANT` default service name ================
664
+ // 1. Create a client with `CLOUDANT` default service name ====================
618
665
  const client = CloudantV1.newInstance({});
619
666
  // 2. Update the document =====================================================
620
667
  // Set the options to get the document out of the database if it exists
@@ -629,13 +676,17 @@ const updateDoc = async () => {
629
676
  })
630
677
  ).result;
631
678
 
679
+ // ==========================================================================
632
680
  // Note: for response byte stream use:
633
- // const documentAsByteStream = (
634
- // await client.getDocumentAsStream({
635
- // docId: 'example',
636
- // db: exampleDbName,
637
- // })
638
- // ).result;
681
+ /*
682
+ const documentAsByteStream = (
683
+ await client.getDocumentAsStream({
684
+ docId: 'example',
685
+ db: exampleDbName,
686
+ })
687
+ ).result;
688
+ */
689
+ // ==========================================================================
639
690
 
640
691
  // Add Bob Smith's address to the document
641
692
  document.address = '19 Front Street, Darlington, DL5 1TY';
@@ -643,21 +694,42 @@ const updateDoc = async () => {
643
694
  // Remove the joined property from document object
644
695
  delete document['joined'];
645
696
 
646
- // Keeping track with the revision number of the document object:
697
+ // Keeping track of the latest revision number of the document object
698
+ // is necessary for further UPDATE/DELETE operations:
647
699
  document._rev = (
648
700
  await client.postDocument({
649
701
  db: exampleDbName,
650
- document,
702
+ document, // _id and _rev MUST be inside the document object
651
703
  })
652
704
  ).result.rev;
653
705
 
654
- // Note: for request byte stream use:
655
- // document._rev = (
656
- // await client.postDocument({
657
- // db: exampleDbName,
658
- // document: documentAsByteStream,
659
- // })
660
- // ).result.rev;
706
+ // ==========================================================================
707
+ // Note 1: for request byte stream use:
708
+ /*
709
+ document._rev = (
710
+ await client.postDocument({
711
+ db: exampleDbName,
712
+ document: documentAsByteStream,
713
+ })
714
+ ).result.rev;
715
+ */
716
+ // ==========================================================================
717
+
718
+ // ==========================================================================
719
+ // Note 2: updating the document can also be done with the "putDocument" function.
720
+ // `docId` and `rev` are required for an UPDATE operation,
721
+ // but `rev` can be provided in the document object as `_rev` too:
722
+ /*
723
+ document._rev = (
724
+ await client.putDocument({
725
+ db: exampleDbName,
726
+ docId: document._id, // docId is a required parameter
727
+ rev: document._rev,
728
+ document // _rev in the document object CAN replace above `rev` parameter
729
+ })
730
+ ).result.rev;
731
+ */
732
+ // ==========================================================================
661
733
 
662
734
  console.log(
663
735
  `You have updated the document:\n${JSON.stringify(document, null, 2)}`
@@ -720,10 +792,10 @@ interface OrderDocument extends CloudantV1.Document {
720
792
  _rev?: string;
721
793
  }
722
794
 
723
- // 1. Create a client with `CLOUDANT` default service name ================
795
+ // 1. Create a client with `CLOUDANT` default service name ======================
724
796
  const client = CloudantV1.newInstance({});
725
797
 
726
- // 2. Delete the document =============================================
798
+ // 2. Delete the document =======================================================
727
799
  // Set the options to get the document out of the database if it exists
728
800
  const exampleDbName = 'orders';
729
801
  const exampleDocId = 'example';
@@ -742,8 +814,8 @@ client
742
814
  client
743
815
  .deleteDocument({
744
816
  db: exampleDbName,
745
- docId: document._id,
746
- rev: document._rev,
817
+ docId: document._id, // `docId` is required for DELETE
818
+ rev: document._rev, // `rev` is required for DELETE
747
819
  })
748
820
  .then(() => {
749
821
  console.log('You have deleted the document.');
@@ -769,10 +841,10 @@ const { CloudantV1 } = require('@ibm-cloud/cloudant');
769
841
  [embedmd]:# (test/examples/src/js/DeleteDoc.js /const deleteDoc/ /deleteDoc\(\);\n\}/)
770
842
  ```js
771
843
  const deleteDoc = async () => {
772
- // 1. Create a client with `CLOUDANT` default service name ================
844
+ // 1. Create a client with `CLOUDANT` default service name ====================
773
845
  const client = CloudantV1.newInstance({});
774
846
 
775
- // 2. Delete the document =============================================
847
+ // 2. Delete the document =====================================================
776
848
  // Set the options to get the document out of the database if it exists
777
849
  const exampleDbName = 'orders';
778
850
  const exampleDocId = 'example';
@@ -788,8 +860,8 @@ const deleteDoc = async () => {
788
860
 
789
861
  await client.deleteDocument({
790
862
  db: exampleDbName,
791
- docId: document._id,
792
- rev: document._rev,
863
+ docId: document._id, // `docId` is required for DELETE
864
+ rev: document._rev, // `rev` is required for DELETE
793
865
  });
794
866
  console.log('You have deleted the document.');
795
867
  } catch (err) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * © Copyright IBM Corporation 2021. All Rights Reserved.
2
+ * © Copyright IBM Corporation 2021, 2022. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * © Copyright IBM Corporation 2021. All Rights Reserved.
3
+ * © Copyright IBM Corporation 2021, 2022. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License");
6
6
  * you may not use this file except in compliance with the License.
@@ -116,7 +116,7 @@ var CouchdbSessionAuthenticator = /** @class */ (function (_super) {
116
116
  // the creation time by passing it as the now argument.
117
117
  return originalExpiryTimeFn.call(newCookie, newCookie.cloudantPatchUpdateTime || now);
118
118
  };
119
- // Finally delegate back to the original update function or the fallback put (which is set by Cookie
119
+ // Finally, delegate back to the original update function or the fallback put (which is set by Cookie
120
120
  // when an update function is not present on the store). Since we always set an update function for our
121
121
  // patch we need to also provide that fallback.
122
122
  if (originalUpdateCookieFn_1) {
@@ -1 +1 @@
1
- {"version":3,"file":"couchdbSessionAuthenticator.js","sourceRoot":"","sources":["../../auth/couchdbSessionAuthenticator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yDAA+E;AAC/E,6DAG+B;AAU/B;;;;;;;;;;;GAWG;AACH;IAAiD,+CAAa;IAS5D;;;;;;;OAOG;IACH,qCAAY,OAA2C;QAAvD,YACE,iBAAO,SAGR;QAFC,IAAA,kCAAa,EAAC,OAAO,EAAE,KAAI,CAAC,eAAe,CAAC,CAAC;QAC7C,KAAI,CAAC,YAAY,gBAAQ,OAAO,CAAE,CAAC;;IACrC,CAAC;IAED;;;;;;;;OAQG;IACI,kDAAY,GAAnB,UAAoB,cAAsB;QACxC,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAED;;;;;OAKG;IACI,+CAAS,GAAhB,UAAiB,WAAwB;QACvC,oBAAoB;QACpB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAE9C,+EAA+E;QAC/E,yCAAyC;QACzC,IAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;QACxC,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;YACzC,wBAAwB;YACxB,SAAS,CAAC,aAAa,GAAG,IAAI,CAAC;YAC/B,uFAAuF;YACvF,IAAM,wBAAsB,GAAG,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC;YAC5D,SAAS,CAAC,KAAK,CAAC,YAAY,GAAG,SAAS,YAAY,CAClD,SAAS,EACT,SAAS,EACT,EAAE;gBAEF,2DAA2D;gBAC3D,SAAS,CAAC,uBAAuB,GAAG,IAAI,IAAI,EAAE,CAAC;gBAC/C,sFAAsF;gBACtF,iDAAiD;gBACjD,IAAM,oBAAoB,GAAG,SAAS,CAAC,UAAU,CAAC;gBAClD,SAAS,CAAC,UAAU,GAAG,SAAS,UAAU,CAAC,GAAG;oBAC5C,qEAAqE;oBACrE,2BAA2B;oBAC3B,mDAAmD;oBACnD,kBAAkB;oBAClB,uGAAuG;oBACvG,uDAAuD;oBACvD,OAAO,oBAAoB,CAAC,IAAI,CAC9B,SAAS,EACT,SAAS,CAAC,uBAAuB,IAAI,GAAG,CACzC,CAAC;gBACJ,CAAC,CAAC;gBACF,oGAAoG;gBACpG,uGAAuG;gBACvG,+CAA+C;gBAC/C,IAAI,wBAAsB,EAAE;oBAC1B,wBAAsB,CAAC,IAAI,CACzB,SAAS,CAAC,KAAK,EACf,SAAS,EACT,SAAS,EACT,EAAE,CACH,CAAC;iBACH;qBAAM;oBACL,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;iBAChE;YACH,CAAC,CAAC;SACH;QACD,8BAA8B;QAE9B,wBAAwB;QACxB,IAAI,CAAC,YAAY,GAAG,IAAI,yCAAmB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,kDAAkD;IAC3C,wDAAkB,GAAzB;QACE,OAAO,2BAA2B,CAAC,wBAAwB,CAAC;IAC9D,CAAC;IAlGe,oDAAwB,GAAG,iBAAiB,CAAC;IAmG/D,kCAAC;CAAA,AA1GD,CAAiD,kCAAa,GA0G7D;AA1GY,kEAA2B"}
1
+ {"version":3,"file":"couchdbSessionAuthenticator.js","sourceRoot":"","sources":["../../auth/couchdbSessionAuthenticator.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;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