@hivegpt/hiveai-angular 0.0.310 → 0.0.312
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/bundles/hivegpt-hiveai-angular.umd.js +4 -1
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +5 -2
- package/fesm2015/hivegpt-hiveai-angular.js +4 -1
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1139,6 +1139,7 @@
|
|
|
1139
1139
|
copied: false,
|
|
1140
1140
|
isCollapsedTrue: false,
|
|
1141
1141
|
WorkflowExecutionId: chat.WorkflowExecutionId,
|
|
1142
|
+
_id: chat._id
|
|
1142
1143
|
});
|
|
1143
1144
|
}
|
|
1144
1145
|
if (chat.Type == 'ai') {
|
|
@@ -1157,6 +1158,7 @@
|
|
|
1157
1158
|
time: formatTimeStamps(_this.timezone, chat.InsertTimestamp),
|
|
1158
1159
|
copied: false,
|
|
1159
1160
|
isCollapsedTrue: false,
|
|
1161
|
+
_id: chat._id
|
|
1160
1162
|
});
|
|
1161
1163
|
_this.showFeedBackIconsIndex = _this.chatLog.length - 1;
|
|
1162
1164
|
}
|
|
@@ -1439,6 +1441,7 @@
|
|
|
1439
1441
|
};
|
|
1440
1442
|
ChatDrawerComponent.prototype.submitFeedback = function (flag, message) {
|
|
1441
1443
|
var _this = this;
|
|
1444
|
+
console.log(message);
|
|
1442
1445
|
this.feedbackDone = true;
|
|
1443
1446
|
this.showFeedBackIconsIndex = null;
|
|
1444
1447
|
var conversation_id = this.conversationService.getKey(this.botId);
|
|
@@ -1450,7 +1453,7 @@
|
|
|
1450
1453
|
'x-api-key': 'Conversation_WIz/qAm+EEmfOkFaUA/weA==',
|
|
1451
1454
|
'hive-bot-id': this.botId
|
|
1452
1455
|
},
|
|
1453
|
-
body: JSON.stringify({
|
|
1456
|
+
body: JSON.stringify({ messageId: message._id, isHelpful: flag }),
|
|
1454
1457
|
}).then(function () {
|
|
1455
1458
|
if (flag) {
|
|
1456
1459
|
_this.chatLog.push({
|