crisp-api 5.0.0 → 5.0.4

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.
@@ -639,12 +639,18 @@ function WebsiteConversation(service, crisp) {
639
639
  * @return Promise
640
640
  */
641
641
  service.initiateNewCallSessionForConversation = function(
642
- websiteID, sessionID
642
+ websiteID, sessionID, mode
643
643
  ) {
644
644
  return crisp.post(
645
645
  crisp._prepareRestUrl([
646
646
  "website", websiteID, "conversation", sessionID, "call"
647
- ])
647
+ ]),
648
+
649
+ null,
650
+
651
+ {
652
+ mode : (mode || "audio")
653
+ }
648
654
  );
649
655
  };
650
656
 
@@ -735,7 +741,7 @@ function WebsiteConversation(service, crisp) {
735
741
  * @return Promise
736
742
  */
737
743
  service.deliverWidgetDataFetchActionForConversation = function(
738
- websiteID, sessionID, pluginID, sectionID, itemID
744
+ websiteID, sessionID, pluginID, sectionID, itemID, data
739
745
  ) {
740
746
  return crisp.post(
741
747
  crisp._prepareRestUrl([
@@ -747,7 +753,8 @@ function WebsiteConversation(service, crisp) {
747
753
 
748
754
  {
749
755
  section_id : sectionID,
750
- item_id : itemID
756
+ item_id : itemID,
757
+ data : data
751
758
  }
752
759
  );
753
760
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "5.0.0",
4
+ "version": "5.0.4",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {