@tiledesk/tiledesk-tybot-connector 2.0.10-rc18 → 2.0.10-rc19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "2.0.10-rc18",
3
+ "version": "2.0.10-rc19",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,10 +24,11 @@ class DirAddKbContent {
24
24
  this.requestId = this.context.requestId;
25
25
  this.projectId = this.context.projectId;
26
26
  this.token = this.context.token;
27
- this.intentDir = new DirIntent(context);
28
27
  this.API_ENDPOINT = this.context.API_ENDPOINT;
29
28
  this.log = context.log;
30
- this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest.draft });
29
+
30
+ this.intentDir = new DirIntent(context);
31
+ this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
31
32
  }
32
33
 
33
34
  execute(directive, callback) {
@@ -19,7 +19,7 @@ class DirFlowLog {
19
19
  this.requestId = context.requestId;
20
20
  this.log = context.log;
21
21
 
22
- this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest.draft });
22
+ this.logger = new Logger({ request_id: this.requestId, dev: this.context.supportRequest?.draft, intent_id: this.context.reply?.attributes?.intent_info?.intent_id });
23
23
  }
24
24
 
25
25
  execute(directive, callback) {