coveo.analytics 2.23.9 → 2.23.10

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.
@@ -2124,6 +2124,11 @@
2124
2124
  (function (InsightEvents) {
2125
2125
  InsightEvents["contextChanged"] = "contextChanged";
2126
2126
  InsightEvents["expandToFullUI"] = "expandToFullUI";
2127
+ InsightEvents["openUserActions"] = "openUserActions";
2128
+ InsightEvents["showPrecedingSessions"] = "showPrecedingSessions";
2129
+ InsightEvents["showFollowingSessions"] = "showFollowingSessions";
2130
+ InsightEvents["clickViewedDocument"] = "clickViewedDocument";
2131
+ InsightEvents["clickPageView"] = "clickPageView";
2127
2132
  })(InsightEvents || (InsightEvents = {}));
2128
2133
 
2129
2134
  var _a;
@@ -2234,6 +2239,11 @@
2234
2239
  _a[SearchPageEvents.clearRecentResults] = 'recentlyClickedDocuments',
2235
2240
  _a[SearchPageEvents.showLessFoldedResults] = 'folding',
2236
2241
  _a[InsightEvents.expandToFullUI] = 'interface',
2242
+ _a[InsightEvents.openUserActions] = 'User Actions',
2243
+ _a[InsightEvents.showPrecedingSessions] = 'User Actions',
2244
+ _a[InsightEvents.showFollowingSessions] = 'User Actions',
2245
+ _a[InsightEvents.clickViewedDocument] = 'User Actions',
2246
+ _a[InsightEvents.clickPageView] = 'User Actions',
2237
2247
  _a[SearchPageEvents.caseDetach] = 'case',
2238
2248
  _a);
2239
2249
 
@@ -3772,6 +3782,24 @@
3772
3782
  var metadataToSend = generateMetadataToSend(metadata);
3773
3783
  return this.logCustomEvent(InsightEvents.expandToFullUI, metadataToSend);
3774
3784
  };
3785
+ CoveoInsightClient.prototype.logOpenUserActions = function (metadata) {
3786
+ var metadataToSend = generateMetadataToSend(metadata, false);
3787
+ return this.logCustomEvent(InsightEvents.openUserActions, metadataToSend);
3788
+ };
3789
+ CoveoInsightClient.prototype.logShowPrecedingSessions = function (metadata) {
3790
+ var metadataToSend = generateMetadataToSend(metadata, false);
3791
+ return this.logCustomEvent(InsightEvents.showPrecedingSessions, metadataToSend);
3792
+ };
3793
+ CoveoInsightClient.prototype.logShowFollowingSessions = function (metadata) {
3794
+ var metadataToSend = generateMetadataToSend(metadata, false);
3795
+ return this.logCustomEvent(InsightEvents.showFollowingSessions, metadataToSend);
3796
+ };
3797
+ CoveoInsightClient.prototype.logViewedDocumentClick = function (document, metadata) {
3798
+ return this.logCustomEvent(InsightEvents.clickViewedDocument, __assign(__assign({}, generateMetadataToSend(metadata, false)), { document: document }));
3799
+ };
3800
+ CoveoInsightClient.prototype.logPageViewClick = function (pageView, metadata) {
3801
+ return this.logCustomEvent(InsightEvents.clickPageView, __assign(__assign({}, generateMetadataToSend(metadata, false)), { pageView: pageView }));
3802
+ };
3775
3803
  CoveoInsightClient.prototype.logDocumentOpen = function (info, identifier, metadata) {
3776
3804
  return this.logClickEvent(SearchPageEvents.documentOpen, info, identifier, metadata ? generateMetadataToSend(metadata, false) : undefined);
3777
3805
  };