@tiledesk/tiledesk-tybot-connector 0.2.117 → 0.2.118

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
@@ -17,6 +17,9 @@ available on:
17
17
  - Added flowError on JSONCondition when result = null
18
18
  - Added fix on Filler -->
19
19
 
20
+ # v0.2.118 -> test
21
+ - added payload to attributes: await chatbot.addParameter("payload", message);
22
+
20
23
  # v0.2.117 -> test
21
24
  - block endpoint fixed with APIURL
22
25
 
@@ -714,6 +714,7 @@ class TiledeskChatbotUtil {
714
714
  // console.log("Adding from message.attributes:", key, "->", value);
715
715
  await chatbot.addParameter(key, value);
716
716
  }
717
+ await chatbot.addParameter("payload", message);
717
718
  }
718
719
  catch(err) {
719
720
  console.error("Error importing message payload in request variables:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.117",
3
+ "version": "0.2.118",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,6 +9,7 @@ class DirJSONCondition {
9
9
  throw new Error('context object is mandatory.');
10
10
  }
11
11
  this.context = context;
12
+ this.chatbot = context.chatbot;
12
13
  // let context = {
13
14
  // projectId: projectId,
14
15
  // token: token,