@tiledesk/tiledesk-tybot-connector 0.2.112 → 0.2.113

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,7 +17,10 @@ available on:
17
17
  - Added flowError on JSONCondition when result = null
18
18
  - Added fix on Filler -->
19
19
 
20
- # v0.2.112 -> test
20
+ # v0.2.113 -> test
21
+ - Fixed DirClose not importing TiledeskChatbotConst
22
+
23
+ # v0.2.112 -> prod
21
24
  - Fix index name in DirAskGPTV2
22
25
 
23
26
  # v0.2.111 -> test
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.112",
3
+ "version": "0.2.113",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -171,7 +171,9 @@ class DirAskGPTV2 {
171
171
  let keep_going = await this.checkQuoteAvailability(server_base_url);
172
172
  if (keep_going === false) {
173
173
  if (this.log) { console.log("DirAskGPT - Quota exceeded for tokens. Skip the action")}
174
- callback();
174
+ await this.chatbot.addParameter("flowError", "AskGPT Error: tokens quota exceeded");
175
+ await this.#executeCondition(false, trueIntent, trueIntentAttributes, falseIntent, falseIntentAttributes);
176
+ callback(true);
175
177
  return;
176
178
  }
177
179
  }
@@ -1,4 +1,6 @@
1
1
 
2
+ const { TiledeskChatbotConst } = require("../../models/TiledeskChatbotConst");
3
+
2
4
  class DirClose {
3
5
 
4
6
  constructor(context) {