crisp-api 5.0.1 → 5.0.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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v5.0.2
5
+
6
+ ### Changes
7
+
8
+ * Added a new parameter `data` to the `CrispClient.website.deliverWidgetDataFetchActionForConversation` method.
9
+
4
10
  ## v5.0.1
5
11
 
6
12
  ### Changes
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Crisp API Node wrapper. Authenticate, send messages, fetch conversations, ac
6
6
 
7
7
  Copyright 2021 Crisp IM SARL. See LICENSE for copying information.
8
8
 
9
- * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 08/11/2021
9
+ * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 30/11/2021
10
10
  * **😘 Maintainers**: [@baptistejamin](https://github.com/baptistejamin), [@eliottvincent](https://github.com/eliottvincent), [@valeriansaliou](https://github.com/valeriansaliou)
11
11
 
12
12
  ## Installation
@@ -137,7 +137,7 @@ Thus, it is straightforward to look for them in the library while reading the [R
137
137
  * **Abort Ongoing Call Session For Conversation** [`user`, `plugin`]: `CrispClient.website.abortOngoingCallSessionForConversation(websiteID, sessionID, callID)`
138
138
  * **Transmit Signaling On Ongoing Call Session** [`user`, `plugin`]: `CrispClient.website.transmitSignalingOnOngoingCallSession(websiteID, sessionID, callID, payload)`
139
139
  * **Deliver Widget Button Action For Conversation** [`user`]: `CrispClient.website.deliverWidgetButtonActionForConversation(websiteID, sessionID, pluginID, sectionID, itemID, data, value)`
140
- * **Deliver Widget Data Fetch Action For Conversation** [`user`]: `CrispClient.website.deliverWidgetDataFetchActionForConversation(websiteID, sessionID, pluginID, sectionID, itemID)`
140
+ * **Deliver Widget Data Fetch Action For Conversation** [`user`]: `CrispClient.website.deliverWidgetDataFetchActionForConversation(websiteID, sessionID, pluginID, sectionID, itemID, data)`
141
141
  * **Deliver Widget Data Edit Action For Conversation** [`user`]: `CrispClient.website.deliverWidgetDataEditActionForConversation(websiteID, sessionID, pluginID, sectionID, itemID, value)`
142
142
  * **Schedule A Reminder For Conversation** [`user`, `plugin`]: `CrispClient.website.scheduleReminderForConversation(websiteID, sessionID, date, note)`
143
143
 
@@ -735,7 +735,7 @@ function WebsiteConversation(service, crisp) {
735
735
  * @return Promise
736
736
  */
737
737
  service.deliverWidgetDataFetchActionForConversation = function(
738
- websiteID, sessionID, pluginID, sectionID, itemID
738
+ websiteID, sessionID, pluginID, sectionID, itemID, data
739
739
  ) {
740
740
  return crisp.post(
741
741
  crisp._prepareRestUrl([
@@ -747,7 +747,8 @@ function WebsiteConversation(service, crisp) {
747
747
 
748
748
  {
749
749
  section_id : sectionID,
750
- item_id : itemID
750
+ item_id : itemID,
751
+ data : data
751
752
  }
752
753
  );
753
754
  };
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.1",
4
+ "version": "5.0.2",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {