@tiledesk/tiledesk-tybot-connector 2.0.15-rc1 → 2.0.16-rc1
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 +1 -1
- package/Logger.js +10 -3
- package/logs/app.log +571 -0
- package/package.json +2 -2
- 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 +6 -7
- 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/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 +7 -7
- package/tiledeskChatbotPlugs/directives/DirWebResponse.js +2 -3
- package/tiledeskChatbotPlugs/directives/DirWhatsappByAttribute.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -491,7 +491,7 @@ available on:
|
|
|
491
491
|
- Added AskGPTV2 action
|
|
492
492
|
|
|
493
493
|
# v0.2.49
|
|
494
|
-
- 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
|
|
495
495
|
- Never add "guest#" as lead userFullname
|
|
496
496
|
|
|
497
497
|
# v0.2.48
|
package/Logger.js
CHANGED
|
@@ -67,6 +67,11 @@ class Logger {
|
|
|
67
67
|
return this.base('debug', log);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
+
native(...args) {
|
|
71
|
+
let log = this.formatLog(args);
|
|
72
|
+
return this.base('native', log);
|
|
73
|
+
}
|
|
74
|
+
|
|
70
75
|
base(level, text) {
|
|
71
76
|
if (!this.request_id || !publisher) {
|
|
72
77
|
console.log("Return because request or publisher is undefined", this.request_id, publisher);
|
|
@@ -102,15 +107,17 @@ class Logger {
|
|
|
102
107
|
|
|
103
108
|
// Substitute methods with empty function if flow flogs are disabled
|
|
104
109
|
_disableMethods() {
|
|
105
|
-
const methods = ['error', 'warn', 'info', 'debug'];
|
|
110
|
+
const methods = ['error', 'warn', 'info', 'debug', 'native'];
|
|
106
111
|
methods.forEach(method => {
|
|
107
112
|
this[method] = () => { };
|
|
108
113
|
});
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
_disableDebugMethods() {
|
|
112
|
-
const
|
|
113
|
-
|
|
117
|
+
const methods = ['debug', 'native'];
|
|
118
|
+
methods.forEach(method => {
|
|
119
|
+
this[method] = () => { };
|
|
120
|
+
});
|
|
114
121
|
}
|
|
115
122
|
|
|
116
123
|
}
|