@tiledesk/tiledesk-tybot-connector 0.2.103 → 0.2.105
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 +9 -0
- package/index.js +2 -3
- package/models/TiledeskChatbotUtil.js +1 -0
- package/models/faqKbService.js +1 -1
- package/package.json +1 -1
- package/tiledeskChatbotPlugs/directives/DirAskGPTV2.js +1 -1
- package/tiledeskChatbotPlugs/directives/DirIfOnlineAgentsV2.js +1 -1
- package/tiledeskChatbotPlugs/directives/DirIntent.js +1 -1
- package/tiledeskChatbotPlugs/directives/DirWait.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,15 @@ available on:
|
|
|
17
17
|
- Added flowError on JSONCondition when result = null
|
|
18
18
|
- Added fix on Filler -->
|
|
19
19
|
|
|
20
|
+
# v0.2.105 -> production
|
|
21
|
+
- clean logs
|
|
22
|
+
|
|
23
|
+
# v0.2.104 -> production
|
|
24
|
+
- isValid fixed
|
|
25
|
+
|
|
26
|
+
# v0.2.103 -> test
|
|
27
|
+
- isValid removed
|
|
28
|
+
|
|
20
29
|
# v0.2.102
|
|
21
30
|
- isValid modified: if (parts.length >= 4) instead of "if (parts.length === 4)" that blocked whatsapp requests
|
|
22
31
|
|
package/index.js
CHANGED
|
@@ -68,9 +68,8 @@ router.post('/ext/:botid', async (req, res) => {
|
|
|
68
68
|
res.status(200).send({"success":true});
|
|
69
69
|
}
|
|
70
70
|
else {
|
|
71
|
-
res.status(400).send({"success": false, error: "Request id is invalid"});
|
|
72
|
-
|
|
73
|
-
// process.exit(0)
|
|
71
|
+
res.status(400).send({"success": false, error: "Request id is invalid:" + requestId + " for projectId:" + projectId + "chatbotId:" + botId});
|
|
72
|
+
return;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
const request_botId_key = "tilebot:botId_requests:" + requestId;
|
package/models/faqKbService.js
CHANGED
|
@@ -13,7 +13,7 @@ class FaqKbService {
|
|
|
13
13
|
}
|
|
14
14
|
var sortQuery = {};
|
|
15
15
|
sortQuery["score"] = -1;
|
|
16
|
-
console.log("(Service) GET ALL FAQ_KBs");
|
|
16
|
+
// console.log("(Service) GET ALL FAQ_KBs");
|
|
17
17
|
return new Promise((resolve, reject) => {
|
|
18
18
|
// let query = {public: options.public, certified: options.certified};
|
|
19
19
|
Faq_kb.find(query).sort(sortQuery).lean().exec( (err, bots) => {
|
package/package.json
CHANGED
|
@@ -513,7 +513,7 @@ class DirAskGPTV2 {
|
|
|
513
513
|
console.error("(httprequest) DirAskGPT Increment tokens quote err: ", err);
|
|
514
514
|
rejects(false)
|
|
515
515
|
} else {
|
|
516
|
-
console.log("(httprequest) DirAskGPT Increment token quote resbody: ", resbody);
|
|
516
|
+
// console.log("(httprequest) DirAskGPT Increment token quote resbody: ", resbody);
|
|
517
517
|
resolve(true);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
@@ -33,7 +33,7 @@ class DirIfOnlineAgentsV2 {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
async go(action, callback) {
|
|
36
|
-
console.log("(DirIfOnlineAgents) action:", action);
|
|
36
|
+
// console.log("(DirIfOnlineAgents) action:", action);
|
|
37
37
|
if (!action.trueIntent && !action.falseIntent) {
|
|
38
38
|
if (this.log) {
|
|
39
39
|
console.log("Error DirIfOnlineAgents: missing both action.trueIntent & action.falseIntent");
|
|
@@ -55,7 +55,7 @@ class DirWait {
|
|
|
55
55
|
// console.log("step_key:", step_key);
|
|
56
56
|
if (action && action.millis >= 1000) {//2000 * 60) { // at list 2 minutes waiting time to reset the steps counter
|
|
57
57
|
// await this.tdcache.set(step_key, 0);
|
|
58
|
-
console.log("resetting steps counter");
|
|
58
|
+
// console.log("resetting steps counter");
|
|
59
59
|
await TiledeskChatbot.resetStep(this.tdcache, this.requestId);
|
|
60
60
|
// console.log("step_key after:", await this.tdcache.get( step_key ));
|
|
61
61
|
}
|