@tiledesk/tiledesk-tybot-connector 2.0.16-rc2 → 2.0.16-rc4

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/Logger.js CHANGED
@@ -4,7 +4,7 @@ const FLOW_LOGS_ENABLED = process.env.FLOW_LOGS_ENABLED;
4
4
  const AMQP_MANAGER_URL = process.env.AMQP_MANAGER_URL;
5
5
  const LOGS_BASE_ROUTING_KEY = process.env.LOGS_BASE_ROUTING_KEY || "apps.tilechat.logs";
6
6
 
7
- const levels = { error: 0, warn: 1, info: 2, debug: 3 };
7
+ const levels = { error: 0, warn: 1, info: 2, debug: 3, native: 4 };
8
8
 
9
9
  let publisher = new Publisher(AMQP_MANAGER_URL, {
10
10
  debug: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "2.0.16-rc2",
3
+ "version": "2.0.16-rc4",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  "@tiledesk/tiledesk-chatbot-client": "^0.5.30",
16
16
  "@tiledesk/tiledesk-chatbot-util": "^0.8.39",
17
17
  "@tiledesk/tiledesk-client": "^0.10.13",
18
- "@tiledesk/tiledesk-multi-worker": "^0.3.1",
18
+ "@tiledesk/tiledesk-multi-worker": "^0.3.2",
19
19
  "accept-language-parser": "^1.5.0",
20
20
  "app-root-path": "^3.1.0",
21
21
  "axios": "^1.7.7",
@@ -74,11 +74,11 @@ class DirFlowLog {
74
74
  }
75
75
  else if (level === 'info') {
76
76
  winston.verbose("Adding log '" + filled_log + "' with level " + level);
77
- this.logger.native(filled_log);
77
+ this.logger.info(filled_log);
78
78
  }
79
79
  else if (level === 'debug') {
80
80
  winston.verbose("Adding log '" + filled_log + "' with level " + level);
81
- this.logger.native(filled_log);
81
+ this.logger.debug(filled_log);
82
82
  }
83
83
 
84
84
  callback();
@@ -19,6 +19,8 @@ class DirReply {
19
19
  this.tdcache = context.tdcache;
20
20
  this.log = context.log;
21
21
  this.API_ENDPOINT = context.API_ENDPOINT;
22
+
23
+ console.log("context.supportRequest: ", context.supportRequest);
22
24
 
23
25
  this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
24
26
  this.tdClient = new TiledeskClient({ projectId: this.context.projectId, token: this.context.token, APIURL: this.API_ENDPOINT, APIKEY: "___", log: this.log });