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.
- package/CHANGELOG.md +24 -0
- package/EXAMPLES.md +1584 -0
- package/README.md +2292 -240
- package/lib/resources/WebsiteConversation.js +11 -4
- package/package.json +1 -1
|
@@ -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