@tiledesk/tiledesk-tybot-connector 0.2.51 → 0.2.53

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
@@ -5,7 +5,13 @@
5
5
  available on:
6
6
  ▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
7
7
 
8
- # v0.2.50
8
+ # v0.2.53
9
+ - Fix bug: missing check for callback in executeCondition in DirHubspot
10
+
11
+ # v0.2.52
12
+ - Fix bug: wrong call at getKeyFromIntegration in Qapla' directive
13
+
14
+ # v0.2.51
9
15
  - Improved AskGPTV2 action
10
16
  - Added Hubspot action
11
17
  - Added Customerio action (hidden)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -110,7 +110,7 @@ class DirHubspot {
110
110
  json: json,
111
111
  method: "POST"
112
112
  }
113
- if (this.log) { console.log("DirHubspot MAKE_HTTPREQUEST", JSON.stringify(HUBSPOT_HTTPREQUEST)); }
113
+ if (this.log) { console.log("DirHubspot HUBSPOT_HTTPREQUEST", JSON.stringify(HUBSPOT_HTTPREQUEST)); }
114
114
 
115
115
  this.#myrequest(
116
116
  HUBSPOT_HTTPREQUEST, async (err, resbody) => {
@@ -253,23 +253,31 @@ class DirHubspot {
253
253
  if (result === true) {
254
254
  if (trueIntentDirective) {
255
255
  this.intentDir.execute(trueIntentDirective, () => {
256
- callback();
256
+ if (callback) {
257
+ callback();
258
+ }
257
259
  });
258
260
  }
259
261
  else {
260
262
  if (this.log) { console.log("No trueIntentDirective specified"); }
261
- callback();
263
+ if (callback) {
264
+ callback();
265
+ }
262
266
  }
263
267
  }
264
268
  else {
265
269
  if (falseIntentDirective) {
266
270
  this.intentDir.execute(falseIntentDirective, () => {
267
- callback();
271
+ if (callback) {
272
+ callback();
273
+ }
268
274
  });
269
275
  }
270
276
  else {
271
277
  if (this.log) { console.log("No falseIntentDirective specified"); }
272
- callback();
278
+ if (callback) {
279
+ callback();
280
+ }
273
281
  }
274
282
  }
275
283
  }
@@ -289,7 +289,7 @@ class DirQapla {
289
289
  return new Promise((resolve) => {
290
290
 
291
291
  const INTEGRATIONS_HTTPREQUEST = {
292
- url: server_base_url + "/" + this.context.projectId + "/integration/name/openai",
292
+ url: server_base_url + "/" + this.context.projectId + "/integration/name/qapla",
293
293
  headers: {
294
294
  'Content-Type': 'application/json',
295
295
  'Authorization': 'JWT ' + this.context.token