@tiledesk/tiledesk-tybot-connector 2.0.15 → 2.0.16-rc2
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 +28 -3
- package/Logger.js +13 -3
- package/engine/mock/MockBotsDataSource.js +1 -2
- package/index.js +3 -0
- package/logs/app.log +1162 -0
- package/package.json +2 -2
- package/tiledeskChatbotPlugs/DirectivesChatbotPlug.js +29 -11
- package/tiledeskChatbotPlugs/directives/DirAddKbContent.js +20 -21
- package/tiledeskChatbotPlugs/directives/DirAddTags.js +5 -6
- package/tiledeskChatbotPlugs/directives/DirAiPrompt.js +7 -8
- package/tiledeskChatbotPlugs/directives/DirAskGPTV2.js +53 -21
- package/tiledeskChatbotPlugs/directives/DirAssistant.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirBrevo.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirCaptureUserReply.js +4 -5
- package/tiledeskChatbotPlugs/directives/DirClearTranscript.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirClose.js +2 -3
- package/tiledeskChatbotPlugs/directives/DirCode.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirCondition.js +3 -4
- package/tiledeskChatbotPlugs/directives/DirContactUpdate.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirCustomerio.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirDeleteVariable.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirDepartment.js +3 -4
- package/tiledeskChatbotPlugs/directives/DirFlowLog.js +7 -7
- package/tiledeskChatbotPlugs/directives/DirGptTask.js +4 -5
- package/tiledeskChatbotPlugs/directives/DirHubspot.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirIfOnlineAgentsV2.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirIfOpenHours.js +3 -4
- package/tiledeskChatbotPlugs/directives/DirIntent.js +1 -0
- package/tiledeskChatbotPlugs/directives/DirJSONCondition.js +4 -5
- package/tiledeskChatbotPlugs/directives/DirMake.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirMoveToAgent.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirMoveToUnassigned.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirQapla.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirRandomReply.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirReplaceBot.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirReplaceBotV2.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirReplaceBotV3.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirReply.js +4 -5
- package/tiledeskChatbotPlugs/directives/DirReplyV2.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirSendEmail.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirSendWhatsapp.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirSetAttributeV2.js +1 -2
- package/tiledeskChatbotPlugs/directives/DirWait.js +2 -3
- package/tiledeskChatbotPlugs/directives/DirWebRequestV2.js +8 -9
- package/tiledeskChatbotPlugs/directives/DirWebResponse.js +2 -3
- package/tiledeskChatbotPlugs/directives/DirWhatsappByAttribute.js +1 -2
- package/tiledeskChatbotPlugs/directives/Directives.js +1 -0
- package/utils/TiledeskChatbotUtil.js +2 -21
- package/TdCache copy.js +0 -242
- package/tiledeskChatbotPlugs/directives/DirWebRequestV2_old.js +0 -418
package/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,6 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
-
# 2.0.9
|
|
9
|
-
|
|
10
8
|
# 2.0.9-rc1
|
|
11
9
|
- removed: speech-to-text management
|
|
12
10
|
|
|
@@ -20,6 +18,8 @@ available on:
|
|
|
20
18
|
|
|
21
19
|
# v0.5.0
|
|
22
20
|
- added: AI_ENDPOINT env var
|
|
21
|
+
|
|
22
|
+
# v0.5.0-rc1
|
|
23
23
|
- added: ability to get 'none' as bodytype in webresponse
|
|
24
24
|
|
|
25
25
|
# v0.4.2
|
|
@@ -34,6 +34,19 @@ available on:
|
|
|
34
34
|
- changed: refactoring of DIrWebRequestv2
|
|
35
35
|
- bug-fixed: erro while parsing webrequestv2 body
|
|
36
36
|
|
|
37
|
+
# v0.3.5-rc4
|
|
38
|
+
- added: webhook action (same as intent one)
|
|
39
|
+
|
|
40
|
+
# v0.3.5-rc3
|
|
41
|
+
- bug-fixed: jsonBody parse error in web-request-v2
|
|
42
|
+
|
|
43
|
+
# v0.3.5-rc2
|
|
44
|
+
- bug-fixed: cannot set status of undefined reading res.status in DirAssistant
|
|
45
|
+
|
|
46
|
+
# v0.3.5-rc1
|
|
47
|
+
- changed: refactoring web-request-v2
|
|
48
|
+
- bug-fixed: jsonBody parse error in web-request-v2
|
|
49
|
+
|
|
37
50
|
# v0.3.4
|
|
38
51
|
-bug-fixed: slit is undefined in TiledeskChatbotUtils
|
|
39
52
|
|
|
@@ -43,6 +56,18 @@ available on:
|
|
|
43
56
|
# v0.3.2
|
|
44
57
|
- bug-fixed: minor improvement
|
|
45
58
|
|
|
59
|
+
# v0.2.153-rc9
|
|
60
|
+
- changed: updated tiledesk-multi-worker to 0.2.1-rc2
|
|
61
|
+
|
|
62
|
+
# v0.2.153-rc8
|
|
63
|
+
- added: fixToken function in TiledeskService utils class
|
|
64
|
+
|
|
65
|
+
# v0.2.153-rc4
|
|
66
|
+
- log added
|
|
67
|
+
|
|
68
|
+
# v0.2.153-rc3
|
|
69
|
+
- added: specchToText function to transcript audio file
|
|
70
|
+
|
|
46
71
|
# v0.2.153-rc1
|
|
47
72
|
- changed: context for gpt-40 and gpt-40-mini
|
|
48
73
|
|
|
@@ -466,7 +491,7 @@ available on:
|
|
|
466
491
|
- Added AskGPTV2 action
|
|
467
492
|
|
|
468
493
|
# v0.2.49
|
|
469
|
-
- resplacebotv2, added "/" + blockName (so the blockname will be implicitly
|
|
494
|
+
- resplacebotv2, added "/" + blockName (so the blockname will be implicitly Executed"), removing the need to specify the "/" in the body of the replacebot editor
|
|
470
495
|
- Never add "guest#" as lead userFullname
|
|
471
496
|
|
|
472
497
|
# v0.2.48
|
package/Logger.js
CHANGED
|
@@ -12,6 +12,8 @@ let publisher = new Publisher(AMQP_MANAGER_URL, {
|
|
|
12
12
|
exchange: "amq.topic"
|
|
13
13
|
})
|
|
14
14
|
|
|
15
|
+
console.log("LOGGER publisher: ", publisher);
|
|
16
|
+
|
|
15
17
|
class Logger {
|
|
16
18
|
|
|
17
19
|
constructor(config) {
|
|
@@ -65,6 +67,11 @@ class Logger {
|
|
|
65
67
|
return this.base('debug', log);
|
|
66
68
|
}
|
|
67
69
|
|
|
70
|
+
native(...args) {
|
|
71
|
+
let log = this.formatLog(args);
|
|
72
|
+
return this.base('native', log);
|
|
73
|
+
}
|
|
74
|
+
|
|
68
75
|
base(level, text) {
|
|
69
76
|
if (!this.request_id || !publisher) {
|
|
70
77
|
console.log("Return because request or publisher is undefined", this.request_id, publisher);
|
|
@@ -87,6 +94,7 @@ class Logger {
|
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
let topic = LOGS_BASE_ROUTING_KEY + `.${this.request_id}`;
|
|
97
|
+
console.log("LOGGER publishing on topic ", topic)
|
|
90
98
|
publisher.publish(data, topic);
|
|
91
99
|
return;
|
|
92
100
|
}
|
|
@@ -99,15 +107,17 @@ class Logger {
|
|
|
99
107
|
|
|
100
108
|
// Substitute methods with empty function if flow flogs are disabled
|
|
101
109
|
_disableMethods() {
|
|
102
|
-
const methods = ['error', 'warn', 'info', 'debug'];
|
|
110
|
+
const methods = ['error', 'warn', 'info', 'debug', 'native'];
|
|
103
111
|
methods.forEach(method => {
|
|
104
112
|
this[method] = () => { };
|
|
105
113
|
});
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
_disableDebugMethods() {
|
|
109
|
-
const
|
|
110
|
-
|
|
117
|
+
const methods = ['debug', 'native'];
|
|
118
|
+
methods.forEach(method => {
|
|
119
|
+
this[method] = () => { };
|
|
120
|
+
});
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
}
|