coveo.analytics 2.28.21 → 2.28.22

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.
@@ -728,7 +728,7 @@
728
728
  const v5 = v35('v5', 0x50, sha1);
729
729
  var uuidv5 = v5;
730
730
 
731
- var libVersion = "2.28.21" ;
731
+ var libVersion = "2.28.22" ;
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);
@@ -2693,6 +2693,7 @@
2693
2693
  InsightEvents["showFollowingSessions"] = "showFollowingSessions";
2694
2694
  InsightEvents["clickViewedDocument"] = "clickViewedDocument";
2695
2695
  InsightEvents["clickPageView"] = "clickPageView";
2696
+ InsightEvents["createArticle"] = "createArticle";
2696
2697
  })(InsightEvents || (InsightEvents = {}));
2697
2698
 
2698
2699
  var _a;
@@ -2815,12 +2816,6 @@
2815
2816
  _a[SearchPageEvents.recentResultClick] = 'recentlyClickedDocuments',
2816
2817
  _a[SearchPageEvents.clearRecentResults] = 'recentlyClickedDocuments',
2817
2818
  _a[SearchPageEvents.showLessFoldedResults] = 'folding',
2818
- _a[InsightEvents.expandToFullUI] = 'interface',
2819
- _a[InsightEvents.openUserActions] = 'User Actions',
2820
- _a[InsightEvents.showPrecedingSessions] = 'User Actions',
2821
- _a[InsightEvents.showFollowingSessions] = 'User Actions',
2822
- _a[InsightEvents.clickViewedDocument] = 'User Actions',
2823
- _a[InsightEvents.clickPageView] = 'User Actions',
2824
2819
  _a[SearchPageEvents.caseDetach] = 'case',
2825
2820
  _a[SearchPageEvents.likeGeneratedAnswer] = 'generatedAnswer',
2826
2821
  _a[SearchPageEvents.dislikeGeneratedAnswer] = 'generatedAnswer',
@@ -2831,6 +2826,13 @@
2831
2826
  _a[SearchPageEvents.generatedAnswerHideAnswers] = 'generatedAnswer',
2832
2827
  _a[SearchPageEvents.generatedAnswerShowAnswers] = 'generatedAnswer',
2833
2828
  _a[SearchPageEvents.generatedAnswerFeedbackSubmit] = 'generatedAnswer',
2829
+ _a[InsightEvents.expandToFullUI] = 'interface',
2830
+ _a[InsightEvents.openUserActions] = 'User Actions',
2831
+ _a[InsightEvents.showPrecedingSessions] = 'User Actions',
2832
+ _a[InsightEvents.showFollowingSessions] = 'User Actions',
2833
+ _a[InsightEvents.clickViewedDocument] = 'User Actions',
2834
+ _a[InsightEvents.clickPageView] = 'User Actions',
2835
+ _a[InsightEvents.createArticle] = 'createArticle',
2834
2836
  _a);
2835
2837
 
2836
2838
  var NoopAnalytics = (function () {
@@ -4552,6 +4554,9 @@
4552
4554
  CoveoInsightClient.prototype.logPageViewClick = function (pageView, metadata) {
4553
4555
  return this.logCustomEvent(InsightEvents.clickPageView, __assign(__assign({}, generateMetadataToSend(metadata, false)), { pageView: pageView }));
4554
4556
  };
4557
+ CoveoInsightClient.prototype.logCreateArticle = function (createArticleMetadata, metadata) {
4558
+ return this.logCustomEvent(InsightEvents.createArticle, metadata ? __assign(__assign({}, generateMetadataToSend(metadata, false)), createArticleMetadata) : createArticleMetadata);
4559
+ };
4555
4560
  CoveoInsightClient.prototype.logDocumentOpen = function (info, identifier, metadata) {
4556
4561
  return this.logClickEvent(SearchPageEvents.documentOpen, info, identifier, metadata ? generateMetadataToSend(metadata, false) : undefined);
4557
4562
  };