coveo.analytics 2.28.5 → 2.28.7
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/dist/coveoua.browser.js +1 -1
- package/dist/coveoua.browser.js.map +1 -1
- package/dist/coveoua.debug.js +70 -1
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/insight/insightClient.d.ts +2 -0
- package/dist/definitions/searchPage/searchPageClient.d.ts +9 -1
- package/dist/definitions/searchPage/searchPageEvents.d.ts +15 -1
- package/dist/definitions/version.d.ts +1 -1
- package/dist/library.es.js +50 -1
- package/dist/library.js +70 -1
- package/dist/react-native.es.js +50 -1
- package/package.json +1 -1
- package/src/insight/insightClient.spec.ts +32 -0
- package/src/insight/insightClient.ts +22 -0
- package/src/searchPage/searchPageClient.spec.ts +44 -0
- package/src/searchPage/searchPageClient.ts +36 -0
- package/src/searchPage/searchPageEvents.ts +37 -0
package/dist/coveoua.debug.js
CHANGED
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
const v5 = v35('v5', 0x50, sha1);
|
|
729
729
|
var uuidv5 = v5;
|
|
730
730
|
|
|
731
|
-
var libVersion = "2.28.
|
|
731
|
+
var libVersion = "2.28.7" ;
|
|
732
732
|
|
|
733
733
|
var getFormattedLocation = function (location) {
|
|
734
734
|
return "".concat(location.protocol, "//").concat(location.hostname).concat(location.pathname.indexOf('/') === 0 ? location.pathname : "/".concat(location.pathname)).concat(location.search);
|
|
@@ -2715,8 +2715,14 @@
|
|
|
2715
2715
|
SearchPageEvents["showMoreFoldedResults"] = "showMoreFoldedResults";
|
|
2716
2716
|
SearchPageEvents["showLessFoldedResults"] = "showLessFoldedResults";
|
|
2717
2717
|
SearchPageEvents["copyToClipboard"] = "copyToClipboard";
|
|
2718
|
+
SearchPageEvents["caseSendEmail"] = "Case.SendEmail";
|
|
2719
|
+
SearchPageEvents["feedItemTextPost"] = "FeedItem.TextPost";
|
|
2718
2720
|
SearchPageEvents["caseAttach"] = "caseAttach";
|
|
2719
2721
|
SearchPageEvents["caseDetach"] = "caseDetach";
|
|
2722
|
+
SearchPageEvents["retryGeneratedAnswer"] = "retryGeneratedAnswer";
|
|
2723
|
+
SearchPageEvents["likeGeneratedAnswer"] = "likeGeneratedAnswer";
|
|
2724
|
+
SearchPageEvents["dislikeGeneratedAnswer"] = "dislikeGeneratedAnswer";
|
|
2725
|
+
SearchPageEvents["openGeneratedAnswerSource"] = "openGeneratedAnswerSource";
|
|
2720
2726
|
})(SearchPageEvents || (SearchPageEvents = {}));
|
|
2721
2727
|
var CustomEventsTypes = (_a = {},
|
|
2722
2728
|
_a[SearchPageEvents.triggerNotify] = 'queryPipelineTriggers',
|
|
@@ -2758,6 +2764,9 @@
|
|
|
2758
2764
|
_a[InsightEvents.clickViewedDocument] = 'User Actions',
|
|
2759
2765
|
_a[InsightEvents.clickPageView] = 'User Actions',
|
|
2760
2766
|
_a[SearchPageEvents.caseDetach] = 'case',
|
|
2767
|
+
_a[SearchPageEvents.likeGeneratedAnswer] = 'generatedAnswer',
|
|
2768
|
+
_a[SearchPageEvents.dislikeGeneratedAnswer] = 'generatedAnswer',
|
|
2769
|
+
_a[SearchPageEvents.openGeneratedAnswerSource] = 'generatedAnswer',
|
|
2761
2770
|
_a);
|
|
2762
2771
|
|
|
2763
2772
|
var NoopAnalytics = (function () {
|
|
@@ -4043,6 +4052,60 @@
|
|
|
4043
4052
|
var splitTestRunVersion = this.provider.getSplitTestRunVersion ? this.provider.getSplitTestRunVersion() : '';
|
|
4044
4053
|
return __assign(__assign({}, (splitTestRunName && { splitTestRunName: splitTestRunName })), (splitTestRunVersion && { splitTestRunVersion: splitTestRunVersion }));
|
|
4045
4054
|
};
|
|
4055
|
+
CoveoSearchPageClient.prototype.makeLikeGeneratedAnswer = function (metadata) {
|
|
4056
|
+
return this.makeCustomEvent(SearchPageEvents.likeGeneratedAnswer, metadata);
|
|
4057
|
+
};
|
|
4058
|
+
CoveoSearchPageClient.prototype.logLikeGeneratedAnswer = function (metadata) {
|
|
4059
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4060
|
+
return __generator(this, function (_a) {
|
|
4061
|
+
switch (_a.label) {
|
|
4062
|
+
case 0: return [4, this.makeLikeGeneratedAnswer(metadata)];
|
|
4063
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
4064
|
+
}
|
|
4065
|
+
});
|
|
4066
|
+
});
|
|
4067
|
+
};
|
|
4068
|
+
CoveoSearchPageClient.prototype.makeDislikeGeneratedAnswer = function (metadata) {
|
|
4069
|
+
return this.makeCustomEvent(SearchPageEvents.dislikeGeneratedAnswer, metadata);
|
|
4070
|
+
};
|
|
4071
|
+
CoveoSearchPageClient.prototype.logDislikeGeneratedAnswer = function (metadata) {
|
|
4072
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4073
|
+
return __generator(this, function (_a) {
|
|
4074
|
+
switch (_a.label) {
|
|
4075
|
+
case 0: return [4, this.makeDislikeGeneratedAnswer(metadata)];
|
|
4076
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
4077
|
+
}
|
|
4078
|
+
});
|
|
4079
|
+
});
|
|
4080
|
+
};
|
|
4081
|
+
CoveoSearchPageClient.prototype.makeOpenGeneratedAnswerSource = function (metadata) {
|
|
4082
|
+
return this.makeCustomEvent(SearchPageEvents.openGeneratedAnswerSource, metadata);
|
|
4083
|
+
};
|
|
4084
|
+
CoveoSearchPageClient.prototype.logOpenGeneratedAnswerSource = function (metadata) {
|
|
4085
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4086
|
+
return __generator(this, function (_a) {
|
|
4087
|
+
switch (_a.label) {
|
|
4088
|
+
case 0: return [4, this.makeOpenGeneratedAnswerSource(metadata)];
|
|
4089
|
+
case 1: return [2, (_a.sent()).log({
|
|
4090
|
+
searchUID: this.provider.getSearchUID(),
|
|
4091
|
+
})];
|
|
4092
|
+
}
|
|
4093
|
+
});
|
|
4094
|
+
});
|
|
4095
|
+
};
|
|
4096
|
+
CoveoSearchPageClient.prototype.makeRetryGeneratedAnswer = function () {
|
|
4097
|
+
return this.makeSearchEvent(SearchPageEvents.retryGeneratedAnswer);
|
|
4098
|
+
};
|
|
4099
|
+
CoveoSearchPageClient.prototype.logRetryGeneratedAnswer = function () {
|
|
4100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4101
|
+
return __generator(this, function (_a) {
|
|
4102
|
+
switch (_a.label) {
|
|
4103
|
+
case 0: return [4, this.makeRetryGeneratedAnswer()];
|
|
4104
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
4105
|
+
}
|
|
4106
|
+
});
|
|
4107
|
+
});
|
|
4108
|
+
};
|
|
4046
4109
|
return CoveoSearchPageClient;
|
|
4047
4110
|
}());
|
|
4048
4111
|
|
|
@@ -4325,6 +4388,12 @@
|
|
|
4325
4388
|
CoveoInsightClient.prototype.logCopyToClipboard = function (info, identifier, metadata) {
|
|
4326
4389
|
return this.logClickEvent(SearchPageEvents.copyToClipboard, info, identifier, metadata ? generateMetadataToSend(metadata, false) : undefined);
|
|
4327
4390
|
};
|
|
4391
|
+
CoveoInsightClient.prototype.logCaseSendEmail = function (info, identifier, metadata) {
|
|
4392
|
+
return this.logClickEvent(SearchPageEvents.caseSendEmail, info, identifier, metadata ? generateMetadataToSend(metadata, false) : undefined);
|
|
4393
|
+
};
|
|
4394
|
+
CoveoInsightClient.prototype.logFeedItemTextPost = function (info, identifier, metadata) {
|
|
4395
|
+
return this.logClickEvent(SearchPageEvents.feedItemTextPost, info, identifier, metadata ? generateMetadataToSend(metadata, false) : undefined);
|
|
4396
|
+
};
|
|
4328
4397
|
CoveoInsightClient.prototype.logDocumentQuickview = function (info, identifier, caseMetadata) {
|
|
4329
4398
|
var metadata = {
|
|
4330
4399
|
documentTitle: info.documentTitle,
|