coveo.analytics 2.23.6 → 2.23.8
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 +869 -209
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/client/analytics.d.ts +18 -5
- package/dist/definitions/client/noopAnalytics.d.ts +7 -2
- package/dist/definitions/events.d.ts +8 -0
- package/dist/definitions/insight/insightClient.d.ts +2 -0
- package/dist/definitions/searchPage/searchPageClient.d.ts +75 -77
- package/dist/definitions/searchPage/searchPageEvents.d.ts +3 -1
- package/dist/library.es.js +374 -142
- package/dist/library.js +869 -209
- package/dist/react-native.es.js +374 -142
- package/package.json +1 -1
- package/src/client/analytics.ts +75 -16
- package/src/client/noopAnalytics.ts +27 -1
- package/src/events.ts +8 -0
- package/src/insight/insightClient.spec.ts +44 -0
- package/src/insight/insightClient.ts +26 -0
- package/src/searchPage/searchPageClient.spec.ts +176 -143
- package/src/searchPage/searchPageClient.ts +227 -205
- package/src/searchPage/searchPageEvents.ts +9 -0
package/dist/library.js
CHANGED
|
@@ -82835,13 +82835,14 @@ var CoveoAnalyticsClient = (function () {
|
|
|
82835
82835
|
});
|
|
82836
82836
|
});
|
|
82837
82837
|
};
|
|
82838
|
-
CoveoAnalyticsClient.prototype.
|
|
82838
|
+
CoveoAnalyticsClient.prototype.makeEvent = function (eventType) {
|
|
82839
82839
|
var payload = [];
|
|
82840
82840
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
82841
82841
|
payload[_i - 1] = arguments[_i];
|
|
82842
82842
|
}
|
|
82843
82843
|
return __awaiter(this, void 0, void 0, function () {
|
|
82844
82844
|
var _a, eventTypeToSend, parametersToSend, payloadToSend;
|
|
82845
|
+
var _this = this;
|
|
82845
82846
|
return __generator(this, function (_b) {
|
|
82846
82847
|
switch (_b.label) {
|
|
82847
82848
|
case 0:
|
|
@@ -82852,18 +82853,43 @@ var CoveoAnalyticsClient = (function () {
|
|
|
82852
82853
|
return [4, this.resolvePayloadForParameters(eventType, parametersToSend)];
|
|
82853
82854
|
case 2:
|
|
82854
82855
|
payloadToSend = _b.sent();
|
|
82855
|
-
|
|
82856
|
-
|
|
82857
|
-
|
|
82858
|
-
|
|
82859
|
-
|
|
82860
|
-
|
|
82861
|
-
|
|
82862
|
-
|
|
82863
|
-
|
|
82864
|
-
|
|
82865
|
-
|
|
82866
|
-
|
|
82856
|
+
return [2, {
|
|
82857
|
+
eventType: eventTypeToSend,
|
|
82858
|
+
payload: payloadToSend,
|
|
82859
|
+
log: function (remainingPayload) { return __awaiter(_this, void 0, void 0, function () {
|
|
82860
|
+
return __generator(this, function (_a) {
|
|
82861
|
+
switch (_a.label) {
|
|
82862
|
+
case 0:
|
|
82863
|
+
this.bufferedRequests.push({
|
|
82864
|
+
eventType: eventTypeToSend,
|
|
82865
|
+
payload: __assign(__assign({}, payloadToSend), remainingPayload),
|
|
82866
|
+
});
|
|
82867
|
+
return [4, Promise.all(this.afterSendHooks.map(function (hook) { return hook(eventType, __assign(__assign({}, parametersToSend), remainingPayload)); }))];
|
|
82868
|
+
case 1:
|
|
82869
|
+
_a.sent();
|
|
82870
|
+
return [4, this.deferExecution()];
|
|
82871
|
+
case 2:
|
|
82872
|
+
_a.sent();
|
|
82873
|
+
return [4, this.sendFromBufferWithFetch()];
|
|
82874
|
+
case 3: return [2, (_a.sent())];
|
|
82875
|
+
}
|
|
82876
|
+
});
|
|
82877
|
+
}); },
|
|
82878
|
+
}];
|
|
82879
|
+
}
|
|
82880
|
+
});
|
|
82881
|
+
});
|
|
82882
|
+
};
|
|
82883
|
+
CoveoAnalyticsClient.prototype.sendEvent = function (eventType) {
|
|
82884
|
+
var payload = [];
|
|
82885
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
82886
|
+
payload[_i - 1] = arguments[_i];
|
|
82887
|
+
}
|
|
82888
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82889
|
+
return __generator(this, function (_a) {
|
|
82890
|
+
switch (_a.label) {
|
|
82891
|
+
case 0: return [4, this.makeEvent.apply(this, __spreadArrays([eventType], payload))];
|
|
82892
|
+
case 1: return [2, (_a.sent()).log({})];
|
|
82867
82893
|
}
|
|
82868
82894
|
});
|
|
82869
82895
|
});
|
|
@@ -82892,31 +82918,74 @@ var CoveoAnalyticsClient = (function () {
|
|
|
82892
82918
|
CoveoAnalyticsClient.prototype.deleteHttpOnlyVisitorId = function () {
|
|
82893
82919
|
this.runtime.client.deleteHttpCookieVisitorId();
|
|
82894
82920
|
};
|
|
82895
|
-
CoveoAnalyticsClient.prototype.
|
|
82921
|
+
CoveoAnalyticsClient.prototype.makeSearchEvent = function (request) {
|
|
82896
82922
|
return __awaiter(this, void 0, void 0, function () {
|
|
82897
82923
|
return __generator(this, function (_a) {
|
|
82898
|
-
return [2, this.
|
|
82924
|
+
return [2, this.makeEvent(EventType.search, request)];
|
|
82925
|
+
});
|
|
82926
|
+
});
|
|
82927
|
+
};
|
|
82928
|
+
CoveoAnalyticsClient.prototype.sendSearchEvent = function (_a) {
|
|
82929
|
+
var searchQueryUid = _a.searchQueryUid, preparedRequest = __rest(_a, ["searchQueryUid"]);
|
|
82930
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82931
|
+
return __generator(this, function (_b) {
|
|
82932
|
+
switch (_b.label) {
|
|
82933
|
+
case 0: return [4, this.makeSearchEvent(preparedRequest)];
|
|
82934
|
+
case 1: return [2, (_b.sent()).log({ searchQueryUid: searchQueryUid })];
|
|
82935
|
+
}
|
|
82936
|
+
});
|
|
82937
|
+
});
|
|
82938
|
+
};
|
|
82939
|
+
CoveoAnalyticsClient.prototype.makeClickEvent = function (request) {
|
|
82940
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82941
|
+
return __generator(this, function (_a) {
|
|
82942
|
+
return [2, this.makeEvent(EventType.click, request)];
|
|
82943
|
+
});
|
|
82944
|
+
});
|
|
82945
|
+
};
|
|
82946
|
+
CoveoAnalyticsClient.prototype.sendClickEvent = function (_a) {
|
|
82947
|
+
var searchQueryUid = _a.searchQueryUid, preparedRequest = __rest(_a, ["searchQueryUid"]);
|
|
82948
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82949
|
+
return __generator(this, function (_b) {
|
|
82950
|
+
switch (_b.label) {
|
|
82951
|
+
case 0: return [4, this.makeClickEvent(preparedRequest)];
|
|
82952
|
+
case 1: return [2, (_b.sent()).log({ searchQueryUid: searchQueryUid })];
|
|
82953
|
+
}
|
|
82899
82954
|
});
|
|
82900
82955
|
});
|
|
82901
82956
|
};
|
|
82902
|
-
CoveoAnalyticsClient.prototype.
|
|
82957
|
+
CoveoAnalyticsClient.prototype.makeCustomEvent = function (request) {
|
|
82903
82958
|
return __awaiter(this, void 0, void 0, function () {
|
|
82904
82959
|
return __generator(this, function (_a) {
|
|
82905
|
-
return [2, this.
|
|
82960
|
+
return [2, this.makeEvent(EventType.custom, request)];
|
|
82961
|
+
});
|
|
82962
|
+
});
|
|
82963
|
+
};
|
|
82964
|
+
CoveoAnalyticsClient.prototype.sendCustomEvent = function (_a) {
|
|
82965
|
+
var lastSearchQueryUid = _a.lastSearchQueryUid, preparedRequest = __rest(_a, ["lastSearchQueryUid"]);
|
|
82966
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
82967
|
+
return __generator(this, function (_b) {
|
|
82968
|
+
switch (_b.label) {
|
|
82969
|
+
case 0: return [4, this.makeCustomEvent(preparedRequest)];
|
|
82970
|
+
case 1: return [2, (_b.sent()).log({ lastSearchQueryUid: lastSearchQueryUid })];
|
|
82971
|
+
}
|
|
82906
82972
|
});
|
|
82907
82973
|
});
|
|
82908
82974
|
};
|
|
82909
|
-
CoveoAnalyticsClient.prototype.
|
|
82975
|
+
CoveoAnalyticsClient.prototype.makeViewEvent = function (request) {
|
|
82910
82976
|
return __awaiter(this, void 0, void 0, function () {
|
|
82911
82977
|
return __generator(this, function (_a) {
|
|
82912
|
-
return [2, this.
|
|
82978
|
+
return [2, this.makeEvent(EventType.view, request)];
|
|
82913
82979
|
});
|
|
82914
82980
|
});
|
|
82915
82981
|
};
|
|
82916
82982
|
CoveoAnalyticsClient.prototype.sendViewEvent = function (request) {
|
|
82917
82983
|
return __awaiter(this, void 0, void 0, function () {
|
|
82918
82984
|
return __generator(this, function (_a) {
|
|
82919
|
-
|
|
82985
|
+
switch (_a.label) {
|
|
82986
|
+
case 0: return [4, this.makeViewEvent(request)];
|
|
82987
|
+
case 1: return [2, (_a.sent()).log({})];
|
|
82988
|
+
}
|
|
82920
82989
|
});
|
|
82921
82990
|
});
|
|
82922
82991
|
};
|
|
@@ -83625,6 +83694,8 @@ var SearchPageEvents;
|
|
|
83625
83694
|
SearchPageEvents["showMoreFoldedResults"] = "showMoreFoldedResults";
|
|
83626
83695
|
SearchPageEvents["showLessFoldedResults"] = "showLessFoldedResults";
|
|
83627
83696
|
SearchPageEvents["copyToClipboard"] = "copyToClipboard";
|
|
83697
|
+
SearchPageEvents["caseAttach"] = "caseAttach";
|
|
83698
|
+
SearchPageEvents["caseDetach"] = "caseDetach";
|
|
83628
83699
|
})(SearchPageEvents || (SearchPageEvents = {}));
|
|
83629
83700
|
var CustomEventsTypes = (_a = {},
|
|
83630
83701
|
_a[SearchPageEvents.triggerNotify] = 'queryPipelineTriggers',
|
|
@@ -83660,6 +83731,7 @@ var CustomEventsTypes = (_a = {},
|
|
|
83660
83731
|
_a[SearchPageEvents.clearRecentResults] = 'recentlyClickedDocuments',
|
|
83661
83732
|
_a[SearchPageEvents.showLessFoldedResults] = 'folding',
|
|
83662
83733
|
_a[InsightEvents.expandToFullUI] = 'interface',
|
|
83734
|
+
_a[SearchPageEvents.caseDetach] = 'case',
|
|
83663
83735
|
_a);
|
|
83664
83736
|
|
|
83665
83737
|
var NoopAnalytics = (function () {
|
|
@@ -83673,18 +83745,33 @@ var NoopAnalytics = (function () {
|
|
|
83673
83745
|
NoopAnalytics.prototype.getParameters = function () {
|
|
83674
83746
|
return Promise.resolve();
|
|
83675
83747
|
};
|
|
83748
|
+
NoopAnalytics.prototype.makeEvent = function (eventType) {
|
|
83749
|
+
return Promise.resolve({ eventType: eventType, payload: null, log: function () { return Promise.resolve(); } });
|
|
83750
|
+
};
|
|
83676
83751
|
NoopAnalytics.prototype.sendEvent = function () {
|
|
83677
83752
|
return Promise.resolve();
|
|
83678
83753
|
};
|
|
83754
|
+
NoopAnalytics.prototype.makeSearchEvent = function () {
|
|
83755
|
+
return this.makeEvent(EventType.search);
|
|
83756
|
+
};
|
|
83679
83757
|
NoopAnalytics.prototype.sendSearchEvent = function () {
|
|
83680
83758
|
return Promise.resolve();
|
|
83681
83759
|
};
|
|
83760
|
+
NoopAnalytics.prototype.makeClickEvent = function () {
|
|
83761
|
+
return this.makeEvent(EventType.click);
|
|
83762
|
+
};
|
|
83682
83763
|
NoopAnalytics.prototype.sendClickEvent = function () {
|
|
83683
83764
|
return Promise.resolve();
|
|
83684
83765
|
};
|
|
83766
|
+
NoopAnalytics.prototype.makeCustomEvent = function () {
|
|
83767
|
+
return this.makeEvent(EventType.custom);
|
|
83768
|
+
};
|
|
83685
83769
|
NoopAnalytics.prototype.sendCustomEvent = function () {
|
|
83686
83770
|
return Promise.resolve();
|
|
83687
83771
|
};
|
|
83772
|
+
NoopAnalytics.prototype.makeViewEvent = function () {
|
|
83773
|
+
return this.makeEvent(EventType.view);
|
|
83774
|
+
};
|
|
83688
83775
|
NoopAnalytics.prototype.sendViewEvent = function () {
|
|
83689
83776
|
return Promise.resolve();
|
|
83690
83777
|
};
|
|
@@ -83756,388 +83843,826 @@ var CoveoSearchPageClient = (function () {
|
|
|
83756
83843
|
return this.makeSearchEvent(SearchPageEvents.interfaceLoad);
|
|
83757
83844
|
};
|
|
83758
83845
|
CoveoSearchPageClient.prototype.logInterfaceLoad = function () {
|
|
83759
|
-
return this
|
|
83846
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83847
|
+
return __generator(this, function (_a) {
|
|
83848
|
+
switch (_a.label) {
|
|
83849
|
+
case 0: return [4, this.makeInterfaceLoad()];
|
|
83850
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83851
|
+
}
|
|
83852
|
+
});
|
|
83853
|
+
});
|
|
83760
83854
|
};
|
|
83761
83855
|
CoveoSearchPageClient.prototype.makeRecommendationInterfaceLoad = function () {
|
|
83762
83856
|
return this.makeSearchEvent(SearchPageEvents.recommendationInterfaceLoad);
|
|
83763
83857
|
};
|
|
83764
83858
|
CoveoSearchPageClient.prototype.logRecommendationInterfaceLoad = function () {
|
|
83765
|
-
return this
|
|
83859
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83860
|
+
return __generator(this, function (_a) {
|
|
83861
|
+
switch (_a.label) {
|
|
83862
|
+
case 0: return [4, this.makeRecommendationInterfaceLoad()];
|
|
83863
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83864
|
+
}
|
|
83865
|
+
});
|
|
83866
|
+
});
|
|
83766
83867
|
};
|
|
83767
83868
|
CoveoSearchPageClient.prototype.makeRecommendation = function () {
|
|
83768
83869
|
return this.makeCustomEvent(SearchPageEvents.recommendation);
|
|
83769
83870
|
};
|
|
83770
83871
|
CoveoSearchPageClient.prototype.logRecommendation = function () {
|
|
83771
|
-
return this
|
|
83872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83873
|
+
return __generator(this, function (_a) {
|
|
83874
|
+
switch (_a.label) {
|
|
83875
|
+
case 0: return [4, this.makeRecommendation()];
|
|
83876
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83877
|
+
}
|
|
83878
|
+
});
|
|
83879
|
+
});
|
|
83772
83880
|
};
|
|
83773
83881
|
CoveoSearchPageClient.prototype.makeRecommendationOpen = function (info, identifier) {
|
|
83774
83882
|
return this.makeClickEvent(SearchPageEvents.recommendationOpen, info, identifier);
|
|
83775
83883
|
};
|
|
83776
83884
|
CoveoSearchPageClient.prototype.logRecommendationOpen = function (info, identifier) {
|
|
83777
|
-
return this
|
|
83885
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83886
|
+
return __generator(this, function (_a) {
|
|
83887
|
+
switch (_a.label) {
|
|
83888
|
+
case 0: return [4, this.makeRecommendationOpen(info, identifier)];
|
|
83889
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83890
|
+
}
|
|
83891
|
+
});
|
|
83892
|
+
});
|
|
83778
83893
|
};
|
|
83779
83894
|
CoveoSearchPageClient.prototype.makeStaticFilterClearAll = function (meta) {
|
|
83780
83895
|
return this.makeSearchEvent(SearchPageEvents.staticFilterClearAll, meta);
|
|
83781
83896
|
};
|
|
83782
83897
|
CoveoSearchPageClient.prototype.logStaticFilterClearAll = function (meta) {
|
|
83783
|
-
return this
|
|
83898
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83899
|
+
return __generator(this, function (_a) {
|
|
83900
|
+
switch (_a.label) {
|
|
83901
|
+
case 0: return [4, this.makeStaticFilterClearAll(meta)];
|
|
83902
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83903
|
+
}
|
|
83904
|
+
});
|
|
83905
|
+
});
|
|
83784
83906
|
};
|
|
83785
83907
|
CoveoSearchPageClient.prototype.makeStaticFilterSelect = function (meta) {
|
|
83786
83908
|
return this.makeSearchEvent(SearchPageEvents.staticFilterSelect, meta);
|
|
83787
83909
|
};
|
|
83788
83910
|
CoveoSearchPageClient.prototype.logStaticFilterSelect = function (meta) {
|
|
83789
|
-
return this
|
|
83911
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83912
|
+
return __generator(this, function (_a) {
|
|
83913
|
+
switch (_a.label) {
|
|
83914
|
+
case 0: return [4, this.makeStaticFilterSelect(meta)];
|
|
83915
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83916
|
+
}
|
|
83917
|
+
});
|
|
83918
|
+
});
|
|
83790
83919
|
};
|
|
83791
83920
|
CoveoSearchPageClient.prototype.makeStaticFilterDeselect = function (meta) {
|
|
83792
83921
|
return this.makeSearchEvent(SearchPageEvents.staticFilterDeselect, meta);
|
|
83793
83922
|
};
|
|
83794
83923
|
CoveoSearchPageClient.prototype.logStaticFilterDeselect = function (meta) {
|
|
83795
|
-
return this
|
|
83924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83925
|
+
return __generator(this, function (_a) {
|
|
83926
|
+
switch (_a.label) {
|
|
83927
|
+
case 0: return [4, this.makeStaticFilterDeselect(meta)];
|
|
83928
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83929
|
+
}
|
|
83930
|
+
});
|
|
83931
|
+
});
|
|
83796
83932
|
};
|
|
83797
83933
|
CoveoSearchPageClient.prototype.makeFetchMoreResults = function () {
|
|
83798
83934
|
return this.makeCustomEvent(SearchPageEvents.pagerScrolling, { type: 'getMoreResults' });
|
|
83799
83935
|
};
|
|
83800
83936
|
CoveoSearchPageClient.prototype.logFetchMoreResults = function () {
|
|
83801
|
-
return this
|
|
83937
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83938
|
+
return __generator(this, function (_a) {
|
|
83939
|
+
switch (_a.label) {
|
|
83940
|
+
case 0: return [4, this.makeFetchMoreResults()];
|
|
83941
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83942
|
+
}
|
|
83943
|
+
});
|
|
83944
|
+
});
|
|
83802
83945
|
};
|
|
83803
83946
|
CoveoSearchPageClient.prototype.makeInterfaceChange = function (metadata) {
|
|
83804
83947
|
return this.makeSearchEvent(SearchPageEvents.interfaceChange, metadata);
|
|
83805
83948
|
};
|
|
83806
83949
|
CoveoSearchPageClient.prototype.logInterfaceChange = function (metadata) {
|
|
83807
|
-
return this
|
|
83950
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83951
|
+
return __generator(this, function (_a) {
|
|
83952
|
+
switch (_a.label) {
|
|
83953
|
+
case 0: return [4, this.makeInterfaceChange(metadata)];
|
|
83954
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83955
|
+
}
|
|
83956
|
+
});
|
|
83957
|
+
});
|
|
83808
83958
|
};
|
|
83809
83959
|
CoveoSearchPageClient.prototype.makeDidYouMeanAutomatic = function () {
|
|
83810
83960
|
return this.makeSearchEvent(SearchPageEvents.didyoumeanAutomatic);
|
|
83811
83961
|
};
|
|
83812
83962
|
CoveoSearchPageClient.prototype.logDidYouMeanAutomatic = function () {
|
|
83813
|
-
return this
|
|
83963
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83964
|
+
return __generator(this, function (_a) {
|
|
83965
|
+
switch (_a.label) {
|
|
83966
|
+
case 0: return [4, this.makeDidYouMeanAutomatic()];
|
|
83967
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83968
|
+
}
|
|
83969
|
+
});
|
|
83970
|
+
});
|
|
83814
83971
|
};
|
|
83815
83972
|
CoveoSearchPageClient.prototype.makeDidYouMeanClick = function () {
|
|
83816
83973
|
return this.makeSearchEvent(SearchPageEvents.didyoumeanClick);
|
|
83817
83974
|
};
|
|
83818
83975
|
CoveoSearchPageClient.prototype.logDidYouMeanClick = function () {
|
|
83819
|
-
return this
|
|
83976
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83977
|
+
return __generator(this, function (_a) {
|
|
83978
|
+
switch (_a.label) {
|
|
83979
|
+
case 0: return [4, this.makeDidYouMeanClick()];
|
|
83980
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83981
|
+
}
|
|
83982
|
+
});
|
|
83983
|
+
});
|
|
83820
83984
|
};
|
|
83821
83985
|
CoveoSearchPageClient.prototype.makeResultsSort = function (metadata) {
|
|
83822
83986
|
return this.makeSearchEvent(SearchPageEvents.resultsSort, metadata);
|
|
83823
83987
|
};
|
|
83824
83988
|
CoveoSearchPageClient.prototype.logResultsSort = function (metadata) {
|
|
83825
|
-
return this
|
|
83989
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83990
|
+
return __generator(this, function (_a) {
|
|
83991
|
+
switch (_a.label) {
|
|
83992
|
+
case 0: return [4, this.makeResultsSort(metadata)];
|
|
83993
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
83994
|
+
}
|
|
83995
|
+
});
|
|
83996
|
+
});
|
|
83826
83997
|
};
|
|
83827
83998
|
CoveoSearchPageClient.prototype.makeSearchboxSubmit = function () {
|
|
83828
83999
|
return this.makeSearchEvent(SearchPageEvents.searchboxSubmit);
|
|
83829
84000
|
};
|
|
83830
84001
|
CoveoSearchPageClient.prototype.logSearchboxSubmit = function () {
|
|
83831
|
-
return this
|
|
84002
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84003
|
+
return __generator(this, function (_a) {
|
|
84004
|
+
switch (_a.label) {
|
|
84005
|
+
case 0: return [4, this.makeSearchboxSubmit()];
|
|
84006
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84007
|
+
}
|
|
84008
|
+
});
|
|
84009
|
+
});
|
|
83832
84010
|
};
|
|
83833
84011
|
CoveoSearchPageClient.prototype.makeSearchboxClear = function () {
|
|
83834
84012
|
return this.makeSearchEvent(SearchPageEvents.searchboxClear);
|
|
83835
84013
|
};
|
|
83836
84014
|
CoveoSearchPageClient.prototype.logSearchboxClear = function () {
|
|
83837
|
-
return this
|
|
84015
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84016
|
+
return __generator(this, function (_a) {
|
|
84017
|
+
switch (_a.label) {
|
|
84018
|
+
case 0: return [4, this.makeSearchboxClear()];
|
|
84019
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84020
|
+
}
|
|
84021
|
+
});
|
|
84022
|
+
});
|
|
83838
84023
|
};
|
|
83839
84024
|
CoveoSearchPageClient.prototype.makeSearchboxAsYouType = function () {
|
|
83840
84025
|
return this.makeSearchEvent(SearchPageEvents.searchboxAsYouType);
|
|
83841
84026
|
};
|
|
83842
84027
|
CoveoSearchPageClient.prototype.logSearchboxAsYouType = function () {
|
|
83843
|
-
return this
|
|
84028
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84029
|
+
return __generator(this, function (_a) {
|
|
84030
|
+
switch (_a.label) {
|
|
84031
|
+
case 0: return [4, this.makeSearchboxAsYouType()];
|
|
84032
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84033
|
+
}
|
|
84034
|
+
});
|
|
84035
|
+
});
|
|
83844
84036
|
};
|
|
83845
84037
|
CoveoSearchPageClient.prototype.makeBreadcrumbFacet = function (metadata) {
|
|
83846
84038
|
return this.makeSearchEvent(SearchPageEvents.breadcrumbFacet, metadata);
|
|
83847
84039
|
};
|
|
83848
84040
|
CoveoSearchPageClient.prototype.logBreadcrumbFacet = function (metadata) {
|
|
83849
|
-
return this
|
|
84041
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84042
|
+
return __generator(this, function (_a) {
|
|
84043
|
+
switch (_a.label) {
|
|
84044
|
+
case 0: return [4, this.makeBreadcrumbFacet(metadata)];
|
|
84045
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84046
|
+
}
|
|
84047
|
+
});
|
|
84048
|
+
});
|
|
83850
84049
|
};
|
|
83851
84050
|
CoveoSearchPageClient.prototype.makeBreadcrumbResetAll = function () {
|
|
83852
84051
|
return this.makeSearchEvent(SearchPageEvents.breadcrumbResetAll);
|
|
83853
84052
|
};
|
|
83854
84053
|
CoveoSearchPageClient.prototype.logBreadcrumbResetAll = function () {
|
|
83855
|
-
return this
|
|
84054
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84055
|
+
return __generator(this, function (_a) {
|
|
84056
|
+
switch (_a.label) {
|
|
84057
|
+
case 0: return [4, this.makeBreadcrumbResetAll()];
|
|
84058
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84059
|
+
}
|
|
84060
|
+
});
|
|
84061
|
+
});
|
|
83856
84062
|
};
|
|
83857
84063
|
CoveoSearchPageClient.prototype.makeDocumentQuickview = function (info, identifier) {
|
|
83858
84064
|
return this.makeClickEvent(SearchPageEvents.documentQuickview, info, identifier);
|
|
83859
84065
|
};
|
|
83860
84066
|
CoveoSearchPageClient.prototype.logDocumentQuickview = function (info, identifier) {
|
|
83861
|
-
return this
|
|
84067
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84068
|
+
return __generator(this, function (_a) {
|
|
84069
|
+
switch (_a.label) {
|
|
84070
|
+
case 0: return [4, this.makeDocumentQuickview(info, identifier)];
|
|
84071
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84072
|
+
}
|
|
84073
|
+
});
|
|
84074
|
+
});
|
|
83862
84075
|
};
|
|
83863
84076
|
CoveoSearchPageClient.prototype.makeDocumentOpen = function (info, identifier) {
|
|
83864
84077
|
return this.makeClickEvent(SearchPageEvents.documentOpen, info, identifier);
|
|
83865
84078
|
};
|
|
83866
84079
|
CoveoSearchPageClient.prototype.logDocumentOpen = function (info, identifier) {
|
|
83867
|
-
return this
|
|
84080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84081
|
+
return __generator(this, function (_a) {
|
|
84082
|
+
switch (_a.label) {
|
|
84083
|
+
case 0: return [4, this.makeDocumentOpen(info, identifier)];
|
|
84084
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84085
|
+
}
|
|
84086
|
+
});
|
|
84087
|
+
});
|
|
83868
84088
|
};
|
|
83869
84089
|
CoveoSearchPageClient.prototype.makeOmniboxAnalytics = function (meta) {
|
|
83870
84090
|
return this.makeSearchEvent(SearchPageEvents.omniboxAnalytics, formatOmniboxMetadata(meta));
|
|
83871
84091
|
};
|
|
83872
84092
|
CoveoSearchPageClient.prototype.logOmniboxAnalytics = function (meta) {
|
|
83873
|
-
return this
|
|
84093
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84094
|
+
return __generator(this, function (_a) {
|
|
84095
|
+
switch (_a.label) {
|
|
84096
|
+
case 0: return [4, this.makeOmniboxAnalytics(meta)];
|
|
84097
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84098
|
+
}
|
|
84099
|
+
});
|
|
84100
|
+
});
|
|
83874
84101
|
};
|
|
83875
84102
|
CoveoSearchPageClient.prototype.makeOmniboxFromLink = function (meta) {
|
|
83876
84103
|
return this.makeSearchEvent(SearchPageEvents.omniboxFromLink, formatOmniboxMetadata(meta));
|
|
83877
84104
|
};
|
|
83878
84105
|
CoveoSearchPageClient.prototype.logOmniboxFromLink = function (meta) {
|
|
83879
|
-
return this
|
|
84106
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84107
|
+
return __generator(this, function (_a) {
|
|
84108
|
+
switch (_a.label) {
|
|
84109
|
+
case 0: return [4, this.makeOmniboxFromLink(meta)];
|
|
84110
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84111
|
+
}
|
|
84112
|
+
});
|
|
84113
|
+
});
|
|
83880
84114
|
};
|
|
83881
84115
|
CoveoSearchPageClient.prototype.makeSearchFromLink = function () {
|
|
83882
84116
|
return this.makeSearchEvent(SearchPageEvents.searchFromLink);
|
|
83883
84117
|
};
|
|
83884
84118
|
CoveoSearchPageClient.prototype.logSearchFromLink = function () {
|
|
83885
|
-
return this
|
|
84119
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84120
|
+
return __generator(this, function (_a) {
|
|
84121
|
+
switch (_a.label) {
|
|
84122
|
+
case 0: return [4, this.makeSearchFromLink()];
|
|
84123
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84124
|
+
}
|
|
84125
|
+
});
|
|
84126
|
+
});
|
|
83886
84127
|
};
|
|
83887
84128
|
CoveoSearchPageClient.prototype.makeTriggerNotify = function (meta) {
|
|
83888
84129
|
return this.makeCustomEvent(SearchPageEvents.triggerNotify, meta);
|
|
83889
84130
|
};
|
|
83890
84131
|
CoveoSearchPageClient.prototype.logTriggerNotify = function (meta) {
|
|
83891
|
-
return this
|
|
84132
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84133
|
+
return __generator(this, function (_a) {
|
|
84134
|
+
switch (_a.label) {
|
|
84135
|
+
case 0: return [4, this.makeTriggerNotify(meta)];
|
|
84136
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84137
|
+
}
|
|
84138
|
+
});
|
|
84139
|
+
});
|
|
83892
84140
|
};
|
|
83893
84141
|
CoveoSearchPageClient.prototype.makeTriggerExecute = function (meta) {
|
|
83894
84142
|
return this.makeCustomEvent(SearchPageEvents.triggerExecute, meta);
|
|
83895
84143
|
};
|
|
83896
84144
|
CoveoSearchPageClient.prototype.logTriggerExecute = function (meta) {
|
|
83897
|
-
return this
|
|
84145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84146
|
+
return __generator(this, function (_a) {
|
|
84147
|
+
switch (_a.label) {
|
|
84148
|
+
case 0: return [4, this.makeTriggerExecute(meta)];
|
|
84149
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84150
|
+
}
|
|
84151
|
+
});
|
|
84152
|
+
});
|
|
83898
84153
|
};
|
|
83899
84154
|
CoveoSearchPageClient.prototype.makeTriggerQuery = function () {
|
|
83900
84155
|
return this.makeCustomEvent(SearchPageEvents.triggerQuery, { query: this.provider.getSearchEventRequestPayload().queryText }, 'queryPipelineTriggers');
|
|
83901
84156
|
};
|
|
83902
84157
|
CoveoSearchPageClient.prototype.logTriggerQuery = function () {
|
|
83903
|
-
return this
|
|
84158
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84159
|
+
return __generator(this, function (_a) {
|
|
84160
|
+
switch (_a.label) {
|
|
84161
|
+
case 0: return [4, this.makeTriggerQuery()];
|
|
84162
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84163
|
+
}
|
|
84164
|
+
});
|
|
84165
|
+
});
|
|
83904
84166
|
};
|
|
83905
84167
|
CoveoSearchPageClient.prototype.makeUndoTriggerQuery = function (meta) {
|
|
83906
84168
|
return this.makeSearchEvent(SearchPageEvents.undoTriggerQuery, meta);
|
|
83907
84169
|
};
|
|
83908
84170
|
CoveoSearchPageClient.prototype.logUndoTriggerQuery = function (meta) {
|
|
83909
|
-
return this
|
|
84171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84172
|
+
return __generator(this, function (_a) {
|
|
84173
|
+
switch (_a.label) {
|
|
84174
|
+
case 0: return [4, this.makeUndoTriggerQuery(meta)];
|
|
84175
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84176
|
+
}
|
|
84177
|
+
});
|
|
84178
|
+
});
|
|
83910
84179
|
};
|
|
83911
84180
|
CoveoSearchPageClient.prototype.makeTriggerRedirect = function (meta) {
|
|
83912
84181
|
return this.makeCustomEvent(SearchPageEvents.triggerRedirect, __assign(__assign({}, meta), { query: this.provider.getSearchEventRequestPayload().queryText }));
|
|
83913
84182
|
};
|
|
83914
84183
|
CoveoSearchPageClient.prototype.logTriggerRedirect = function (meta) {
|
|
83915
|
-
return this
|
|
84184
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84185
|
+
return __generator(this, function (_a) {
|
|
84186
|
+
switch (_a.label) {
|
|
84187
|
+
case 0: return [4, this.makeTriggerRedirect(meta)];
|
|
84188
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84189
|
+
}
|
|
84190
|
+
});
|
|
84191
|
+
});
|
|
83916
84192
|
};
|
|
83917
84193
|
CoveoSearchPageClient.prototype.makePagerResize = function (meta) {
|
|
83918
84194
|
return this.makeCustomEvent(SearchPageEvents.pagerResize, meta);
|
|
83919
84195
|
};
|
|
83920
84196
|
CoveoSearchPageClient.prototype.logPagerResize = function (meta) {
|
|
83921
|
-
return this
|
|
84197
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84198
|
+
return __generator(this, function (_a) {
|
|
84199
|
+
switch (_a.label) {
|
|
84200
|
+
case 0: return [4, this.makePagerResize(meta)];
|
|
84201
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84202
|
+
}
|
|
84203
|
+
});
|
|
84204
|
+
});
|
|
83922
84205
|
};
|
|
83923
84206
|
CoveoSearchPageClient.prototype.makePagerNumber = function (meta) {
|
|
83924
84207
|
return this.makeCustomEvent(SearchPageEvents.pagerNumber, meta);
|
|
83925
84208
|
};
|
|
83926
84209
|
CoveoSearchPageClient.prototype.logPagerNumber = function (meta) {
|
|
83927
|
-
return this
|
|
84210
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84211
|
+
return __generator(this, function (_a) {
|
|
84212
|
+
switch (_a.label) {
|
|
84213
|
+
case 0: return [4, this.makePagerNumber(meta)];
|
|
84214
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84215
|
+
}
|
|
84216
|
+
});
|
|
84217
|
+
});
|
|
83928
84218
|
};
|
|
83929
84219
|
CoveoSearchPageClient.prototype.makePagerNext = function (meta) {
|
|
83930
84220
|
return this.makeCustomEvent(SearchPageEvents.pagerNext, meta);
|
|
83931
84221
|
};
|
|
83932
84222
|
CoveoSearchPageClient.prototype.logPagerNext = function (meta) {
|
|
83933
|
-
return this
|
|
84223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84224
|
+
return __generator(this, function (_a) {
|
|
84225
|
+
switch (_a.label) {
|
|
84226
|
+
case 0: return [4, this.makePagerNext(meta)];
|
|
84227
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84228
|
+
}
|
|
84229
|
+
});
|
|
84230
|
+
});
|
|
83934
84231
|
};
|
|
83935
84232
|
CoveoSearchPageClient.prototype.makePagerPrevious = function (meta) {
|
|
83936
84233
|
return this.makeCustomEvent(SearchPageEvents.pagerPrevious, meta);
|
|
83937
84234
|
};
|
|
83938
84235
|
CoveoSearchPageClient.prototype.logPagerPrevious = function (meta) {
|
|
83939
|
-
return this
|
|
84236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84237
|
+
return __generator(this, function (_a) {
|
|
84238
|
+
switch (_a.label) {
|
|
84239
|
+
case 0: return [4, this.makePagerPrevious(meta)];
|
|
84240
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84241
|
+
}
|
|
84242
|
+
});
|
|
84243
|
+
});
|
|
83940
84244
|
};
|
|
83941
84245
|
CoveoSearchPageClient.prototype.makePagerScrolling = function () {
|
|
83942
84246
|
return this.makeCustomEvent(SearchPageEvents.pagerScrolling);
|
|
83943
84247
|
};
|
|
83944
84248
|
CoveoSearchPageClient.prototype.logPagerScrolling = function () {
|
|
83945
|
-
return this
|
|
84249
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84250
|
+
return __generator(this, function (_a) {
|
|
84251
|
+
switch (_a.label) {
|
|
84252
|
+
case 0: return [4, this.makePagerScrolling()];
|
|
84253
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84254
|
+
}
|
|
84255
|
+
});
|
|
84256
|
+
});
|
|
83946
84257
|
};
|
|
83947
84258
|
CoveoSearchPageClient.prototype.makeFacetClearAll = function (meta) {
|
|
83948
84259
|
return this.makeSearchEvent(SearchPageEvents.facetClearAll, meta);
|
|
83949
84260
|
};
|
|
83950
84261
|
CoveoSearchPageClient.prototype.logFacetClearAll = function (meta) {
|
|
83951
|
-
return this
|
|
84262
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84263
|
+
return __generator(this, function (_a) {
|
|
84264
|
+
switch (_a.label) {
|
|
84265
|
+
case 0: return [4, this.makeFacetClearAll(meta)];
|
|
84266
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84267
|
+
}
|
|
84268
|
+
});
|
|
84269
|
+
});
|
|
83952
84270
|
};
|
|
83953
84271
|
CoveoSearchPageClient.prototype.makeFacetSearch = function (meta) {
|
|
83954
84272
|
return this.makeSearchEvent(SearchPageEvents.facetSearch, meta);
|
|
83955
84273
|
};
|
|
83956
84274
|
CoveoSearchPageClient.prototype.logFacetSearch = function (meta) {
|
|
83957
|
-
return this
|
|
84275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84276
|
+
return __generator(this, function (_a) {
|
|
84277
|
+
switch (_a.label) {
|
|
84278
|
+
case 0: return [4, this.makeFacetSearch(meta)];
|
|
84279
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84280
|
+
}
|
|
84281
|
+
});
|
|
84282
|
+
});
|
|
83958
84283
|
};
|
|
83959
84284
|
CoveoSearchPageClient.prototype.makeFacetSelect = function (meta) {
|
|
83960
84285
|
return this.makeSearchEvent(SearchPageEvents.facetSelect, meta);
|
|
83961
84286
|
};
|
|
83962
84287
|
CoveoSearchPageClient.prototype.logFacetSelect = function (meta) {
|
|
83963
|
-
return this
|
|
83964
|
-
|
|
83965
|
-
|
|
83966
|
-
|
|
84288
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84289
|
+
return __generator(this, function (_a) {
|
|
84290
|
+
switch (_a.label) {
|
|
84291
|
+
case 0: return [4, this.makeFacetSelect(meta)];
|
|
84292
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84293
|
+
}
|
|
84294
|
+
});
|
|
84295
|
+
});
|
|
84296
|
+
};
|
|
84297
|
+
CoveoSearchPageClient.prototype.makeFacetDeselect = function (meta) {
|
|
84298
|
+
return this.makeSearchEvent(SearchPageEvents.facetDeselect, meta);
|
|
83967
84299
|
};
|
|
83968
84300
|
CoveoSearchPageClient.prototype.logFacetDeselect = function (meta) {
|
|
83969
|
-
return this
|
|
84301
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84302
|
+
return __generator(this, function (_a) {
|
|
84303
|
+
switch (_a.label) {
|
|
84304
|
+
case 0: return [4, this.makeFacetDeselect(meta)];
|
|
84305
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84306
|
+
}
|
|
84307
|
+
});
|
|
84308
|
+
});
|
|
83970
84309
|
};
|
|
83971
84310
|
CoveoSearchPageClient.prototype.makeFacetExclude = function (meta) {
|
|
83972
84311
|
return this.makeSearchEvent(SearchPageEvents.facetExclude, meta);
|
|
83973
84312
|
};
|
|
83974
84313
|
CoveoSearchPageClient.prototype.logFacetExclude = function (meta) {
|
|
83975
|
-
return this
|
|
84314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84315
|
+
return __generator(this, function (_a) {
|
|
84316
|
+
switch (_a.label) {
|
|
84317
|
+
case 0: return [4, this.makeFacetExclude(meta)];
|
|
84318
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84319
|
+
}
|
|
84320
|
+
});
|
|
84321
|
+
});
|
|
83976
84322
|
};
|
|
83977
84323
|
CoveoSearchPageClient.prototype.makeFacetUnexclude = function (meta) {
|
|
83978
84324
|
return this.makeSearchEvent(SearchPageEvents.facetUnexclude, meta);
|
|
83979
84325
|
};
|
|
83980
84326
|
CoveoSearchPageClient.prototype.logFacetUnexclude = function (meta) {
|
|
83981
|
-
return this
|
|
84327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84328
|
+
return __generator(this, function (_a) {
|
|
84329
|
+
switch (_a.label) {
|
|
84330
|
+
case 0: return [4, this.makeFacetUnexclude(meta)];
|
|
84331
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84332
|
+
}
|
|
84333
|
+
});
|
|
84334
|
+
});
|
|
83982
84335
|
};
|
|
83983
84336
|
CoveoSearchPageClient.prototype.makeFacetSelectAll = function (meta) {
|
|
83984
84337
|
return this.makeSearchEvent(SearchPageEvents.facetSelectAll, meta);
|
|
83985
84338
|
};
|
|
83986
84339
|
CoveoSearchPageClient.prototype.logFacetSelectAll = function (meta) {
|
|
83987
|
-
return this
|
|
84340
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84341
|
+
return __generator(this, function (_a) {
|
|
84342
|
+
switch (_a.label) {
|
|
84343
|
+
case 0: return [4, this.makeFacetSelectAll(meta)];
|
|
84344
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84345
|
+
}
|
|
84346
|
+
});
|
|
84347
|
+
});
|
|
83988
84348
|
};
|
|
83989
84349
|
CoveoSearchPageClient.prototype.makeFacetUpdateSort = function (meta) {
|
|
83990
84350
|
return this.makeSearchEvent(SearchPageEvents.facetUpdateSort, meta);
|
|
83991
84351
|
};
|
|
83992
84352
|
CoveoSearchPageClient.prototype.logFacetUpdateSort = function (meta) {
|
|
83993
|
-
return this
|
|
84353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84354
|
+
return __generator(this, function (_a) {
|
|
84355
|
+
switch (_a.label) {
|
|
84356
|
+
case 0: return [4, this.makeFacetUpdateSort(meta)];
|
|
84357
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84358
|
+
}
|
|
84359
|
+
});
|
|
84360
|
+
});
|
|
83994
84361
|
};
|
|
83995
84362
|
CoveoSearchPageClient.prototype.makeFacetShowMore = function (meta) {
|
|
83996
84363
|
return this.makeCustomEvent(SearchPageEvents.facetShowMore, meta);
|
|
83997
84364
|
};
|
|
83998
84365
|
CoveoSearchPageClient.prototype.logFacetShowMore = function (meta) {
|
|
83999
|
-
return this
|
|
84366
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84367
|
+
return __generator(this, function (_a) {
|
|
84368
|
+
switch (_a.label) {
|
|
84369
|
+
case 0: return [4, this.makeFacetShowMore(meta)];
|
|
84370
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84371
|
+
}
|
|
84372
|
+
});
|
|
84373
|
+
});
|
|
84000
84374
|
};
|
|
84001
84375
|
CoveoSearchPageClient.prototype.makeFacetShowLess = function (meta) {
|
|
84002
84376
|
return this.makeCustomEvent(SearchPageEvents.facetShowLess, meta);
|
|
84003
84377
|
};
|
|
84004
84378
|
CoveoSearchPageClient.prototype.logFacetShowLess = function (meta) {
|
|
84005
|
-
return this
|
|
84379
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84380
|
+
return __generator(this, function (_a) {
|
|
84381
|
+
switch (_a.label) {
|
|
84382
|
+
case 0: return [4, this.makeFacetShowLess(meta)];
|
|
84383
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84384
|
+
}
|
|
84385
|
+
});
|
|
84386
|
+
});
|
|
84006
84387
|
};
|
|
84007
84388
|
CoveoSearchPageClient.prototype.makeQueryError = function (meta) {
|
|
84008
84389
|
return this.makeCustomEvent(SearchPageEvents.queryError, meta);
|
|
84009
84390
|
};
|
|
84010
84391
|
CoveoSearchPageClient.prototype.logQueryError = function (meta) {
|
|
84011
|
-
return this
|
|
84392
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84393
|
+
return __generator(this, function (_a) {
|
|
84394
|
+
switch (_a.label) {
|
|
84395
|
+
case 0: return [4, this.makeQueryError(meta)];
|
|
84396
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84397
|
+
}
|
|
84398
|
+
});
|
|
84399
|
+
});
|
|
84012
84400
|
};
|
|
84013
84401
|
CoveoSearchPageClient.prototype.makeQueryErrorBack = function () {
|
|
84014
|
-
|
|
84015
|
-
|
|
84016
|
-
|
|
84017
|
-
|
|
84018
|
-
|
|
84019
|
-
|
|
84020
|
-
|
|
84021
|
-
|
|
84022
|
-
|
|
84023
|
-
|
|
84024
|
-
|
|
84025
|
-
|
|
84026
|
-
|
|
84027
|
-
|
|
84402
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84403
|
+
var customEventBuilder;
|
|
84404
|
+
var _this = this;
|
|
84405
|
+
return __generator(this, function (_a) {
|
|
84406
|
+
switch (_a.label) {
|
|
84407
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorBack)];
|
|
84408
|
+
case 1:
|
|
84409
|
+
customEventBuilder = _a.sent();
|
|
84410
|
+
return [2, {
|
|
84411
|
+
description: customEventBuilder.description,
|
|
84412
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
84413
|
+
return __generator(this, function (_a) {
|
|
84414
|
+
switch (_a.label) {
|
|
84415
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
84416
|
+
case 1:
|
|
84417
|
+
_a.sent();
|
|
84418
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorBack)];
|
|
84419
|
+
}
|
|
84420
|
+
});
|
|
84421
|
+
}); },
|
|
84422
|
+
}];
|
|
84423
|
+
}
|
|
84424
|
+
});
|
|
84425
|
+
});
|
|
84028
84426
|
};
|
|
84029
84427
|
CoveoSearchPageClient.prototype.logQueryErrorBack = function () {
|
|
84030
|
-
return this
|
|
84428
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84429
|
+
return __generator(this, function (_a) {
|
|
84430
|
+
switch (_a.label) {
|
|
84431
|
+
case 0: return [4, this.makeQueryErrorBack()];
|
|
84432
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84433
|
+
}
|
|
84434
|
+
});
|
|
84435
|
+
});
|
|
84031
84436
|
};
|
|
84032
84437
|
CoveoSearchPageClient.prototype.makeQueryErrorRetry = function () {
|
|
84033
|
-
|
|
84034
|
-
|
|
84035
|
-
|
|
84036
|
-
|
|
84037
|
-
|
|
84038
|
-
|
|
84039
|
-
|
|
84040
|
-
|
|
84041
|
-
|
|
84042
|
-
|
|
84043
|
-
|
|
84044
|
-
|
|
84045
|
-
|
|
84046
|
-
|
|
84438
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84439
|
+
var customEventBuilder;
|
|
84440
|
+
var _this = this;
|
|
84441
|
+
return __generator(this, function (_a) {
|
|
84442
|
+
switch (_a.label) {
|
|
84443
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorRetry)];
|
|
84444
|
+
case 1:
|
|
84445
|
+
customEventBuilder = _a.sent();
|
|
84446
|
+
return [2, {
|
|
84447
|
+
description: customEventBuilder.description,
|
|
84448
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
84449
|
+
return __generator(this, function (_a) {
|
|
84450
|
+
switch (_a.label) {
|
|
84451
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
84452
|
+
case 1:
|
|
84453
|
+
_a.sent();
|
|
84454
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorRetry)];
|
|
84455
|
+
}
|
|
84456
|
+
});
|
|
84457
|
+
}); },
|
|
84458
|
+
}];
|
|
84459
|
+
}
|
|
84460
|
+
});
|
|
84461
|
+
});
|
|
84047
84462
|
};
|
|
84048
84463
|
CoveoSearchPageClient.prototype.logQueryErrorRetry = function () {
|
|
84049
|
-
return this
|
|
84464
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84465
|
+
return __generator(this, function (_a) {
|
|
84466
|
+
switch (_a.label) {
|
|
84467
|
+
case 0: return [4, this.makeQueryErrorRetry()];
|
|
84468
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84469
|
+
}
|
|
84470
|
+
});
|
|
84471
|
+
});
|
|
84050
84472
|
};
|
|
84051
84473
|
CoveoSearchPageClient.prototype.makeQueryErrorClear = function () {
|
|
84052
|
-
|
|
84053
|
-
|
|
84054
|
-
|
|
84055
|
-
|
|
84056
|
-
|
|
84057
|
-
|
|
84058
|
-
|
|
84059
|
-
|
|
84060
|
-
|
|
84061
|
-
|
|
84062
|
-
|
|
84063
|
-
|
|
84064
|
-
|
|
84065
|
-
|
|
84474
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84475
|
+
var customEventBuilder;
|
|
84476
|
+
var _this = this;
|
|
84477
|
+
return __generator(this, function (_a) {
|
|
84478
|
+
switch (_a.label) {
|
|
84479
|
+
case 0: return [4, this.makeCustomEvent(SearchPageEvents.queryErrorClear)];
|
|
84480
|
+
case 1:
|
|
84481
|
+
customEventBuilder = _a.sent();
|
|
84482
|
+
return [2, {
|
|
84483
|
+
description: customEventBuilder.description,
|
|
84484
|
+
log: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
84485
|
+
return __generator(this, function (_a) {
|
|
84486
|
+
switch (_a.label) {
|
|
84487
|
+
case 0: return [4, customEventBuilder.log({ searchUID: this.provider.getSearchUID() })];
|
|
84488
|
+
case 1:
|
|
84489
|
+
_a.sent();
|
|
84490
|
+
return [2, this.logSearchEvent(SearchPageEvents.queryErrorClear)];
|
|
84491
|
+
}
|
|
84492
|
+
});
|
|
84493
|
+
}); },
|
|
84494
|
+
}];
|
|
84495
|
+
}
|
|
84496
|
+
});
|
|
84497
|
+
});
|
|
84066
84498
|
};
|
|
84067
84499
|
CoveoSearchPageClient.prototype.logQueryErrorClear = function () {
|
|
84068
|
-
return this
|
|
84500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84501
|
+
return __generator(this, function (_a) {
|
|
84502
|
+
switch (_a.label) {
|
|
84503
|
+
case 0: return [4, this.makeQueryErrorClear()];
|
|
84504
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84505
|
+
}
|
|
84506
|
+
});
|
|
84507
|
+
});
|
|
84069
84508
|
};
|
|
84070
84509
|
CoveoSearchPageClient.prototype.makeLikeSmartSnippet = function () {
|
|
84071
84510
|
return this.makeCustomEvent(SearchPageEvents.likeSmartSnippet);
|
|
84072
84511
|
};
|
|
84073
84512
|
CoveoSearchPageClient.prototype.logLikeSmartSnippet = function () {
|
|
84074
|
-
return this
|
|
84513
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84514
|
+
return __generator(this, function (_a) {
|
|
84515
|
+
switch (_a.label) {
|
|
84516
|
+
case 0: return [4, this.makeLikeSmartSnippet()];
|
|
84517
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84518
|
+
}
|
|
84519
|
+
});
|
|
84520
|
+
});
|
|
84075
84521
|
};
|
|
84076
84522
|
CoveoSearchPageClient.prototype.makeDislikeSmartSnippet = function () {
|
|
84077
84523
|
return this.makeCustomEvent(SearchPageEvents.dislikeSmartSnippet);
|
|
84078
84524
|
};
|
|
84079
84525
|
CoveoSearchPageClient.prototype.logDislikeSmartSnippet = function () {
|
|
84080
|
-
return this
|
|
84526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84527
|
+
return __generator(this, function (_a) {
|
|
84528
|
+
switch (_a.label) {
|
|
84529
|
+
case 0: return [4, this.makeDislikeSmartSnippet()];
|
|
84530
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84531
|
+
}
|
|
84532
|
+
});
|
|
84533
|
+
});
|
|
84081
84534
|
};
|
|
84082
84535
|
CoveoSearchPageClient.prototype.makeExpandSmartSnippet = function () {
|
|
84083
84536
|
return this.makeCustomEvent(SearchPageEvents.expandSmartSnippet);
|
|
84084
84537
|
};
|
|
84085
84538
|
CoveoSearchPageClient.prototype.logExpandSmartSnippet = function () {
|
|
84086
|
-
return this
|
|
84539
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84540
|
+
return __generator(this, function (_a) {
|
|
84541
|
+
switch (_a.label) {
|
|
84542
|
+
case 0: return [4, this.makeExpandSmartSnippet()];
|
|
84543
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84544
|
+
}
|
|
84545
|
+
});
|
|
84546
|
+
});
|
|
84087
84547
|
};
|
|
84088
84548
|
CoveoSearchPageClient.prototype.makeCollapseSmartSnippet = function () {
|
|
84089
84549
|
return this.makeCustomEvent(SearchPageEvents.collapseSmartSnippet);
|
|
84090
84550
|
};
|
|
84091
84551
|
CoveoSearchPageClient.prototype.logCollapseSmartSnippet = function () {
|
|
84092
|
-
return this
|
|
84552
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84553
|
+
return __generator(this, function (_a) {
|
|
84554
|
+
switch (_a.label) {
|
|
84555
|
+
case 0: return [4, this.makeCollapseSmartSnippet()];
|
|
84556
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84557
|
+
}
|
|
84558
|
+
});
|
|
84559
|
+
});
|
|
84093
84560
|
};
|
|
84094
84561
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetFeedbackModal = function () {
|
|
84095
84562
|
return this.makeCustomEvent(SearchPageEvents.openSmartSnippetFeedbackModal);
|
|
84096
84563
|
};
|
|
84097
84564
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetFeedbackModal = function () {
|
|
84098
|
-
return this
|
|
84565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84566
|
+
return __generator(this, function (_a) {
|
|
84567
|
+
switch (_a.label) {
|
|
84568
|
+
case 0: return [4, this.makeOpenSmartSnippetFeedbackModal()];
|
|
84569
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84570
|
+
}
|
|
84571
|
+
});
|
|
84572
|
+
});
|
|
84099
84573
|
};
|
|
84100
84574
|
CoveoSearchPageClient.prototype.makeCloseSmartSnippetFeedbackModal = function () {
|
|
84101
84575
|
return this.makeCustomEvent(SearchPageEvents.closeSmartSnippetFeedbackModal);
|
|
84102
84576
|
};
|
|
84103
84577
|
CoveoSearchPageClient.prototype.logCloseSmartSnippetFeedbackModal = function () {
|
|
84104
|
-
return this
|
|
84578
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84579
|
+
return __generator(this, function (_a) {
|
|
84580
|
+
switch (_a.label) {
|
|
84581
|
+
case 0: return [4, this.makeCloseSmartSnippetFeedbackModal()];
|
|
84582
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84583
|
+
}
|
|
84584
|
+
});
|
|
84585
|
+
});
|
|
84105
84586
|
};
|
|
84106
84587
|
CoveoSearchPageClient.prototype.makeSmartSnippetFeedbackReason = function (reason, details) {
|
|
84107
84588
|
return this.makeCustomEvent(SearchPageEvents.sendSmartSnippetReason, { reason: reason, details: details });
|
|
84108
84589
|
};
|
|
84109
84590
|
CoveoSearchPageClient.prototype.logSmartSnippetFeedbackReason = function (reason, details) {
|
|
84110
|
-
return this
|
|
84591
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84592
|
+
return __generator(this, function (_a) {
|
|
84593
|
+
switch (_a.label) {
|
|
84594
|
+
case 0: return [4, this.makeSmartSnippetFeedbackReason(reason, details)];
|
|
84595
|
+
case 1: return [2, (_a.sent()).log({
|
|
84596
|
+
searchUID: this.provider.getSearchUID(),
|
|
84597
|
+
})];
|
|
84598
|
+
}
|
|
84599
|
+
});
|
|
84600
|
+
});
|
|
84111
84601
|
};
|
|
84112
84602
|
CoveoSearchPageClient.prototype.makeExpandSmartSnippetSuggestion = function (snippet) {
|
|
84113
84603
|
return this.makeCustomEvent(SearchPageEvents.expandSmartSnippetSuggestion, 'documentId' in snippet ? snippet : { documentId: snippet });
|
|
84114
84604
|
};
|
|
84115
84605
|
CoveoSearchPageClient.prototype.logExpandSmartSnippetSuggestion = function (snippet) {
|
|
84116
|
-
return this
|
|
84606
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84607
|
+
return __generator(this, function (_a) {
|
|
84608
|
+
switch (_a.label) {
|
|
84609
|
+
case 0: return [4, this.makeExpandSmartSnippetSuggestion(snippet)];
|
|
84610
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84611
|
+
}
|
|
84612
|
+
});
|
|
84613
|
+
});
|
|
84117
84614
|
};
|
|
84118
84615
|
CoveoSearchPageClient.prototype.makeCollapseSmartSnippetSuggestion = function (snippet) {
|
|
84119
84616
|
return this.makeCustomEvent(SearchPageEvents.collapseSmartSnippetSuggestion, 'documentId' in snippet ? snippet : { documentId: snippet });
|
|
84120
84617
|
};
|
|
84121
84618
|
CoveoSearchPageClient.prototype.logCollapseSmartSnippetSuggestion = function (snippet) {
|
|
84122
|
-
return this
|
|
84619
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84620
|
+
return __generator(this, function (_a) {
|
|
84621
|
+
switch (_a.label) {
|
|
84622
|
+
case 0: return [4, this.makeCollapseSmartSnippetSuggestion(snippet)];
|
|
84623
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84624
|
+
}
|
|
84625
|
+
});
|
|
84626
|
+
});
|
|
84123
84627
|
};
|
|
84124
84628
|
CoveoSearchPageClient.prototype.makeShowMoreSmartSnippetSuggestion = function (snippet) {
|
|
84125
84629
|
return this.makeCustomEvent(SearchPageEvents.showMoreSmartSnippetSuggestion, snippet);
|
|
84126
84630
|
};
|
|
84127
84631
|
CoveoSearchPageClient.prototype.logShowMoreSmartSnippetSuggestion = function (snippet) {
|
|
84128
|
-
return this
|
|
84632
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84633
|
+
return __generator(this, function (_a) {
|
|
84634
|
+
switch (_a.label) {
|
|
84635
|
+
case 0: return [4, this.makeShowMoreSmartSnippetSuggestion(snippet)];
|
|
84636
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84637
|
+
}
|
|
84638
|
+
});
|
|
84639
|
+
});
|
|
84129
84640
|
};
|
|
84130
84641
|
CoveoSearchPageClient.prototype.makeShowLessSmartSnippetSuggestion = function (snippet) {
|
|
84131
84642
|
return this.makeCustomEvent(SearchPageEvents.showLessSmartSnippetSuggestion, snippet);
|
|
84132
84643
|
};
|
|
84133
84644
|
CoveoSearchPageClient.prototype.logShowLessSmartSnippetSuggestion = function (snippet) {
|
|
84134
|
-
return this
|
|
84645
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84646
|
+
return __generator(this, function (_a) {
|
|
84647
|
+
switch (_a.label) {
|
|
84648
|
+
case 0: return [4, this.makeShowLessSmartSnippetSuggestion(snippet)];
|
|
84649
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84650
|
+
}
|
|
84651
|
+
});
|
|
84652
|
+
});
|
|
84135
84653
|
};
|
|
84136
84654
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSource = function (info, identifier) {
|
|
84137
84655
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSource, info, identifier);
|
|
84138
84656
|
};
|
|
84139
84657
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSource = function (info, identifier) {
|
|
84140
|
-
return this
|
|
84658
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84659
|
+
return __generator(this, function (_a) {
|
|
84660
|
+
switch (_a.label) {
|
|
84661
|
+
case 0: return [4, this.makeOpenSmartSnippetSource(info, identifier)];
|
|
84662
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84663
|
+
}
|
|
84664
|
+
});
|
|
84665
|
+
});
|
|
84141
84666
|
};
|
|
84142
84667
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSuggestionSource = function (info, snippet) {
|
|
84143
84668
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSuggestionSource, info, { contentIDKey: snippet.documentId.contentIdKey, contentIDValue: snippet.documentId.contentIdValue }, snippet);
|
|
@@ -84146,16 +84671,41 @@ var CoveoSearchPageClient = (function () {
|
|
|
84146
84671
|
return this.makeClickEvent(SearchPageEvents.copyToClipboard, info, identifier);
|
|
84147
84672
|
};
|
|
84148
84673
|
CoveoSearchPageClient.prototype.logCopyToClipboard = function (info, identifier) {
|
|
84149
|
-
return this
|
|
84674
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84675
|
+
return __generator(this, function (_a) {
|
|
84676
|
+
switch (_a.label) {
|
|
84677
|
+
case 0: return [4, this.makeCopyToClipboard(info, identifier)];
|
|
84678
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84679
|
+
}
|
|
84680
|
+
});
|
|
84681
|
+
});
|
|
84150
84682
|
};
|
|
84151
84683
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSuggestionSource = function (info, snippet) {
|
|
84152
|
-
return this
|
|
84684
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84685
|
+
return __generator(this, function (_a) {
|
|
84686
|
+
switch (_a.label) {
|
|
84687
|
+
case 0: return [4, this.makeOpenSmartSnippetSuggestionSource(info, snippet)];
|
|
84688
|
+
case 1: return [2, (_a.sent()).log({
|
|
84689
|
+
searchUID: this.provider.getSearchUID(),
|
|
84690
|
+
})];
|
|
84691
|
+
}
|
|
84692
|
+
});
|
|
84693
|
+
});
|
|
84153
84694
|
};
|
|
84154
84695
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetInlineLink = function (info, identifierAndLink) {
|
|
84155
84696
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetInlineLink, info, { contentIDKey: identifierAndLink.contentIDKey, contentIDValue: identifierAndLink.contentIDValue }, identifierAndLink);
|
|
84156
84697
|
};
|
|
84157
84698
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetInlineLink = function (info, identifierAndLink) {
|
|
84158
|
-
return this
|
|
84699
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84700
|
+
return __generator(this, function (_a) {
|
|
84701
|
+
switch (_a.label) {
|
|
84702
|
+
case 0: return [4, this.makeOpenSmartSnippetInlineLink(info, identifierAndLink)];
|
|
84703
|
+
case 1: return [2, (_a.sent()).log({
|
|
84704
|
+
searchUID: this.provider.getSearchUID(),
|
|
84705
|
+
})];
|
|
84706
|
+
}
|
|
84707
|
+
});
|
|
84708
|
+
});
|
|
84159
84709
|
};
|
|
84160
84710
|
CoveoSearchPageClient.prototype.makeOpenSmartSnippetSuggestionInlineLink = function (info, snippetAndLink) {
|
|
84161
84711
|
return this.makeClickEvent(SearchPageEvents.openSmartSnippetSuggestionInlineLink, info, {
|
|
@@ -84164,158 +84714,257 @@ var CoveoSearchPageClient = (function () {
|
|
|
84164
84714
|
}, snippetAndLink);
|
|
84165
84715
|
};
|
|
84166
84716
|
CoveoSearchPageClient.prototype.logOpenSmartSnippetSuggestionInlineLink = function (info, snippetAndLink) {
|
|
84167
|
-
return this
|
|
84717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84718
|
+
return __generator(this, function (_a) {
|
|
84719
|
+
switch (_a.label) {
|
|
84720
|
+
case 0: return [4, this.makeOpenSmartSnippetSuggestionInlineLink(info, snippetAndLink)];
|
|
84721
|
+
case 1: return [2, (_a.sent()).log({
|
|
84722
|
+
searchUID: this.provider.getSearchUID(),
|
|
84723
|
+
})];
|
|
84724
|
+
}
|
|
84725
|
+
});
|
|
84726
|
+
});
|
|
84168
84727
|
};
|
|
84169
84728
|
CoveoSearchPageClient.prototype.makeRecentQueryClick = function () {
|
|
84170
84729
|
return this.makeSearchEvent(SearchPageEvents.recentQueryClick);
|
|
84171
84730
|
};
|
|
84172
84731
|
CoveoSearchPageClient.prototype.logRecentQueryClick = function () {
|
|
84173
|
-
return this
|
|
84732
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84733
|
+
return __generator(this, function (_a) {
|
|
84734
|
+
switch (_a.label) {
|
|
84735
|
+
case 0: return [4, this.makeRecentQueryClick()];
|
|
84736
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84737
|
+
}
|
|
84738
|
+
});
|
|
84739
|
+
});
|
|
84174
84740
|
};
|
|
84175
84741
|
CoveoSearchPageClient.prototype.makeClearRecentQueries = function () {
|
|
84176
84742
|
return this.makeCustomEvent(SearchPageEvents.clearRecentQueries);
|
|
84177
84743
|
};
|
|
84178
84744
|
CoveoSearchPageClient.prototype.logClearRecentQueries = function () {
|
|
84179
|
-
return this
|
|
84745
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84746
|
+
return __generator(this, function (_a) {
|
|
84747
|
+
switch (_a.label) {
|
|
84748
|
+
case 0: return [4, this.makeClearRecentQueries()];
|
|
84749
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84750
|
+
}
|
|
84751
|
+
});
|
|
84752
|
+
});
|
|
84180
84753
|
};
|
|
84181
84754
|
CoveoSearchPageClient.prototype.makeRecentResultClick = function (info, identifier) {
|
|
84182
84755
|
return this.makeCustomEvent(SearchPageEvents.recentResultClick, { info: info, identifier: identifier });
|
|
84183
84756
|
};
|
|
84184
84757
|
CoveoSearchPageClient.prototype.logRecentResultClick = function (info, identifier) {
|
|
84185
|
-
return this
|
|
84758
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84759
|
+
return __generator(this, function (_a) {
|
|
84760
|
+
switch (_a.label) {
|
|
84761
|
+
case 0: return [4, this.makeRecentResultClick(info, identifier)];
|
|
84762
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84763
|
+
}
|
|
84764
|
+
});
|
|
84765
|
+
});
|
|
84186
84766
|
};
|
|
84187
84767
|
CoveoSearchPageClient.prototype.makeClearRecentResults = function () {
|
|
84188
84768
|
return this.makeCustomEvent(SearchPageEvents.clearRecentResults);
|
|
84189
84769
|
};
|
|
84190
84770
|
CoveoSearchPageClient.prototype.logClearRecentResults = function () {
|
|
84191
|
-
return this
|
|
84771
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84772
|
+
return __generator(this, function (_a) {
|
|
84773
|
+
switch (_a.label) {
|
|
84774
|
+
case 0: return [4, this.makeClearRecentResults()];
|
|
84775
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84776
|
+
}
|
|
84777
|
+
});
|
|
84778
|
+
});
|
|
84192
84779
|
};
|
|
84193
84780
|
CoveoSearchPageClient.prototype.makeNoResultsBack = function () {
|
|
84194
84781
|
return this.makeSearchEvent(SearchPageEvents.noResultsBack);
|
|
84195
84782
|
};
|
|
84196
84783
|
CoveoSearchPageClient.prototype.logNoResultsBack = function () {
|
|
84197
|
-
return this
|
|
84784
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84785
|
+
return __generator(this, function (_a) {
|
|
84786
|
+
switch (_a.label) {
|
|
84787
|
+
case 0: return [4, this.makeNoResultsBack()];
|
|
84788
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84789
|
+
}
|
|
84790
|
+
});
|
|
84791
|
+
});
|
|
84198
84792
|
};
|
|
84199
84793
|
CoveoSearchPageClient.prototype.makeShowMoreFoldedResults = function (info, identifier) {
|
|
84200
84794
|
return this.makeClickEvent(SearchPageEvents.showMoreFoldedResults, info, identifier);
|
|
84201
84795
|
};
|
|
84202
84796
|
CoveoSearchPageClient.prototype.logShowMoreFoldedResults = function (info, identifier) {
|
|
84203
|
-
return this
|
|
84797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84798
|
+
return __generator(this, function (_a) {
|
|
84799
|
+
switch (_a.label) {
|
|
84800
|
+
case 0: return [4, this.makeShowMoreFoldedResults(info, identifier)];
|
|
84801
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84802
|
+
}
|
|
84803
|
+
});
|
|
84804
|
+
});
|
|
84204
84805
|
};
|
|
84205
84806
|
CoveoSearchPageClient.prototype.makeShowLessFoldedResults = function () {
|
|
84206
84807
|
return this.makeCustomEvent(SearchPageEvents.showLessFoldedResults);
|
|
84207
84808
|
};
|
|
84208
84809
|
CoveoSearchPageClient.prototype.logShowLessFoldedResults = function () {
|
|
84209
|
-
return this
|
|
84810
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84811
|
+
return __generator(this, function (_a) {
|
|
84812
|
+
switch (_a.label) {
|
|
84813
|
+
case 0: return [4, this.makeShowLessFoldedResults()];
|
|
84814
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84815
|
+
}
|
|
84816
|
+
});
|
|
84817
|
+
});
|
|
84818
|
+
};
|
|
84819
|
+
CoveoSearchPageClient.prototype.makeEventDescription = function (preparedEvent, actionCause) {
|
|
84820
|
+
var _a;
|
|
84821
|
+
return { actionCause: actionCause, customData: (_a = preparedEvent.payload) === null || _a === void 0 ? void 0 : _a.customData };
|
|
84210
84822
|
};
|
|
84211
84823
|
CoveoSearchPageClient.prototype.makeCustomEvent = function (event, metadata, eventType) {
|
|
84212
|
-
var _this = this;
|
|
84213
84824
|
if (eventType === void 0) { eventType = CustomEventsTypes[event]; }
|
|
84214
|
-
|
|
84215
|
-
|
|
84216
|
-
|
|
84217
|
-
|
|
84218
|
-
|
|
84219
|
-
|
|
84220
|
-
|
|
84221
|
-
|
|
84222
|
-
|
|
84223
|
-
|
|
84224
|
-
|
|
84225
|
-
|
|
84226
|
-
|
|
84227
|
-
|
|
84228
|
-
|
|
84229
|
-
|
|
84230
|
-
|
|
84825
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84826
|
+
var customData, request, _a, preparedEvent;
|
|
84827
|
+
return __generator(this, function (_b) {
|
|
84828
|
+
switch (_b.label) {
|
|
84829
|
+
case 0:
|
|
84830
|
+
this.coveoAnalyticsClient.getParameters;
|
|
84831
|
+
customData = __assign(__assign({}, this.provider.getBaseMetadata()), metadata);
|
|
84832
|
+
_a = [{}];
|
|
84833
|
+
return [4, this.getBaseEventRequest(customData)];
|
|
84834
|
+
case 1:
|
|
84835
|
+
request = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { eventType: eventType, eventValue: event }]);
|
|
84836
|
+
return [4, this.coveoAnalyticsClient.makeCustomEvent(request)];
|
|
84837
|
+
case 2:
|
|
84838
|
+
preparedEvent = _b.sent();
|
|
84839
|
+
return [2, {
|
|
84840
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
84841
|
+
log: function (_a) {
|
|
84842
|
+
var searchUID = _a.searchUID;
|
|
84843
|
+
return preparedEvent.log({ lastSearchQueryUid: searchUID });
|
|
84844
|
+
},
|
|
84845
|
+
}];
|
|
84846
|
+
}
|
|
84847
|
+
});
|
|
84848
|
+
});
|
|
84231
84849
|
};
|
|
84232
84850
|
CoveoSearchPageClient.prototype.logCustomEvent = function (event, metadata, eventType) {
|
|
84233
84851
|
if (eventType === void 0) { eventType = CustomEventsTypes[event]; }
|
|
84234
|
-
return this
|
|
84852
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84853
|
+
return __generator(this, function (_a) {
|
|
84854
|
+
switch (_a.label) {
|
|
84855
|
+
case 0: return [4, this.makeCustomEvent(event, metadata, eventType)];
|
|
84856
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84857
|
+
}
|
|
84858
|
+
});
|
|
84859
|
+
});
|
|
84235
84860
|
};
|
|
84236
84861
|
CoveoSearchPageClient.prototype.makeCustomEventWithType = function (eventValue, eventType, metadata) {
|
|
84237
|
-
|
|
84238
|
-
|
|
84239
|
-
|
|
84240
|
-
|
|
84241
|
-
|
|
84242
|
-
|
|
84243
|
-
|
|
84244
|
-
|
|
84245
|
-
|
|
84246
|
-
|
|
84247
|
-
|
|
84248
|
-
|
|
84249
|
-
|
|
84250
|
-
|
|
84251
|
-
|
|
84252
|
-
|
|
84253
|
-
|
|
84254
|
-
|
|
84255
|
-
|
|
84862
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84863
|
+
var customData, payload, _a, preparedEvent;
|
|
84864
|
+
return __generator(this, function (_b) {
|
|
84865
|
+
switch (_b.label) {
|
|
84866
|
+
case 0:
|
|
84867
|
+
customData = __assign(__assign({}, this.provider.getBaseMetadata()), metadata);
|
|
84868
|
+
_a = [{}];
|
|
84869
|
+
return [4, this.getBaseEventRequest(customData)];
|
|
84870
|
+
case 1:
|
|
84871
|
+
payload = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { eventType: eventType,
|
|
84872
|
+
eventValue: eventValue }]);
|
|
84873
|
+
return [4, this.coveoAnalyticsClient.makeCustomEvent(payload)];
|
|
84874
|
+
case 2:
|
|
84875
|
+
preparedEvent = _b.sent();
|
|
84876
|
+
return [2, {
|
|
84877
|
+
description: this.makeEventDescription(preparedEvent, eventValue),
|
|
84878
|
+
log: function (_a) {
|
|
84879
|
+
var searchUID = _a.searchUID;
|
|
84880
|
+
return preparedEvent.log({ lastSearchQueryUid: searchUID });
|
|
84881
|
+
},
|
|
84882
|
+
}];
|
|
84883
|
+
}
|
|
84884
|
+
});
|
|
84885
|
+
});
|
|
84256
84886
|
};
|
|
84257
84887
|
CoveoSearchPageClient.prototype.logCustomEventWithType = function (eventValue, eventType, metadata) {
|
|
84258
|
-
return this
|
|
84888
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84889
|
+
return __generator(this, function (_a) {
|
|
84890
|
+
switch (_a.label) {
|
|
84891
|
+
case 0: return [4, this.makeCustomEventWithType(eventValue, eventType, metadata)];
|
|
84892
|
+
case 1: return [2, (_a.sent()).log({
|
|
84893
|
+
searchUID: this.provider.getSearchUID(),
|
|
84894
|
+
})];
|
|
84895
|
+
}
|
|
84896
|
+
});
|
|
84897
|
+
});
|
|
84259
84898
|
};
|
|
84260
84899
|
CoveoSearchPageClient.prototype.logSearchEvent = function (event, metadata) {
|
|
84261
84900
|
return __awaiter(this, void 0, void 0, function () {
|
|
84262
|
-
|
|
84263
|
-
|
|
84264
|
-
|
|
84265
|
-
case
|
|
84266
|
-
_b = (_a = this.coveoAnalyticsClient).sendSearchEvent;
|
|
84267
|
-
return [4, this.getBaseSearchEventRequest(event, metadata)];
|
|
84268
|
-
case 1: return [2, _b.apply(_a, [_c.sent()])];
|
|
84901
|
+
return __generator(this, function (_a) {
|
|
84902
|
+
switch (_a.label) {
|
|
84903
|
+
case 0: return [4, this.makeSearchEvent(event, metadata)];
|
|
84904
|
+
case 1: return [2, (_a.sent()).log({ searchUID: this.provider.getSearchUID() })];
|
|
84269
84905
|
}
|
|
84270
84906
|
});
|
|
84271
84907
|
});
|
|
84272
84908
|
};
|
|
84273
|
-
CoveoSearchPageClient.prototype.makeDescription = function (actionCause, metadata) {
|
|
84274
|
-
return { actionCause: actionCause, customData: __assign(__assign({}, this.provider.getBaseMetadata()), metadata) };
|
|
84275
|
-
};
|
|
84276
84909
|
CoveoSearchPageClient.prototype.makeSearchEvent = function (event, metadata) {
|
|
84277
|
-
|
|
84278
|
-
|
|
84279
|
-
|
|
84280
|
-
|
|
84281
|
-
|
|
84910
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84911
|
+
var request, preparedEvent;
|
|
84912
|
+
return __generator(this, function (_a) {
|
|
84913
|
+
switch (_a.label) {
|
|
84914
|
+
case 0: return [4, this.getBaseSearchEventRequest(event, metadata)];
|
|
84915
|
+
case 1:
|
|
84916
|
+
request = _a.sent();
|
|
84917
|
+
return [4, this.coveoAnalyticsClient.makeSearchEvent(request)];
|
|
84918
|
+
case 2:
|
|
84919
|
+
preparedEvent = _a.sent();
|
|
84920
|
+
return [2, {
|
|
84921
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
84922
|
+
log: function (_a) {
|
|
84923
|
+
var searchUID = _a.searchUID;
|
|
84924
|
+
return preparedEvent.log({ searchQueryUid: searchUID });
|
|
84925
|
+
},
|
|
84926
|
+
}];
|
|
84927
|
+
}
|
|
84928
|
+
});
|
|
84929
|
+
});
|
|
84282
84930
|
};
|
|
84283
|
-
CoveoSearchPageClient.prototype.
|
|
84931
|
+
CoveoSearchPageClient.prototype.makeClickEvent = function (event, info, identifier, metadata) {
|
|
84284
84932
|
return __awaiter(this, void 0, void 0, function () {
|
|
84285
|
-
var
|
|
84933
|
+
var request, _a, preparedEvent;
|
|
84286
84934
|
return __generator(this, function (_b) {
|
|
84287
84935
|
switch (_b.label) {
|
|
84288
84936
|
case 0:
|
|
84289
84937
|
_a = [__assign({}, info)];
|
|
84290
84938
|
return [4, this.getBaseEventRequest(__assign(__assign({}, identifier), metadata))];
|
|
84291
84939
|
case 1:
|
|
84292
|
-
|
|
84293
|
-
return [
|
|
84940
|
+
request = __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), { queryPipeline: this.provider.getPipeline(), actionCause: event }]);
|
|
84941
|
+
return [4, this.coveoAnalyticsClient.makeClickEvent(request)];
|
|
84942
|
+
case 2:
|
|
84943
|
+
preparedEvent = _b.sent();
|
|
84944
|
+
return [2, {
|
|
84945
|
+
description: this.makeEventDescription(preparedEvent, event),
|
|
84946
|
+
log: function (_a) {
|
|
84947
|
+
var searchUID = _a.searchUID;
|
|
84948
|
+
return preparedEvent.log({ searchQueryUid: searchUID });
|
|
84949
|
+
},
|
|
84950
|
+
}];
|
|
84294
84951
|
}
|
|
84295
84952
|
});
|
|
84296
84953
|
});
|
|
84297
84954
|
};
|
|
84298
|
-
CoveoSearchPageClient.prototype.
|
|
84299
|
-
var _this = this;
|
|
84300
|
-
return {
|
|
84301
|
-
description: this.makeDescription(event, __assign(__assign({}, identifier), metadata)),
|
|
84302
|
-
log: function () { return _this.logClickEvent(event, info, identifier, metadata); },
|
|
84303
|
-
};
|
|
84304
|
-
};
|
|
84305
|
-
CoveoSearchPageClient.prototype.getBaseSearchEventRequest = function (event, metadata) {
|
|
84955
|
+
CoveoSearchPageClient.prototype.logClickEvent = function (event, info, identifier, metadata) {
|
|
84306
84956
|
return __awaiter(this, void 0, void 0, function () {
|
|
84307
|
-
|
|
84308
|
-
|
|
84309
|
-
|
|
84310
|
-
case
|
|
84311
|
-
|
|
84312
|
-
|
|
84313
|
-
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), this.provider.getSearchEventRequestPayload()]), { searchQueryUid: this.provider.getSearchUID(), queryPipeline: this.provider.getPipeline(), actionCause: event }])];
|
|
84957
|
+
return __generator(this, function (_a) {
|
|
84958
|
+
switch (_a.label) {
|
|
84959
|
+
case 0: return [4, this.makeClickEvent(event, info, identifier, metadata)];
|
|
84960
|
+
case 1: return [2, (_a.sent()).log({
|
|
84961
|
+
searchUID: this.provider.getSearchUID(),
|
|
84962
|
+
})];
|
|
84314
84963
|
}
|
|
84315
84964
|
});
|
|
84316
84965
|
});
|
|
84317
84966
|
};
|
|
84318
|
-
CoveoSearchPageClient.prototype.
|
|
84967
|
+
CoveoSearchPageClient.prototype.getBaseSearchEventRequest = function (event, metadata) {
|
|
84319
84968
|
return __awaiter(this, void 0, void 0, function () {
|
|
84320
84969
|
var _a;
|
|
84321
84970
|
return __generator(this, function (_b) {
|
|
@@ -84323,7 +84972,7 @@ var CoveoSearchPageClient = (function () {
|
|
|
84323
84972
|
case 0:
|
|
84324
84973
|
_a = [{}];
|
|
84325
84974
|
return [4, this.getBaseEventRequest(metadata)];
|
|
84326
|
-
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), {
|
|
84975
|
+
case 1: return [2, __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _a.concat([(_b.sent())])), this.provider.getSearchEventRequestPayload()]), { queryPipeline: this.provider.getPipeline(), actionCause: event }])];
|
|
84327
84976
|
}
|
|
84328
84977
|
});
|
|
84329
84978
|
});
|
|
@@ -84633,6 +85282,17 @@ var CoveoInsightClient = (function () {
|
|
|
84633
85282
|
};
|
|
84634
85283
|
return this.logClickEvent(SearchPageEvents.documentQuickview, info, identifier, caseMetadata ? __assign(__assign({}, generateMetadataToSend(caseMetadata, false)), metadata) : metadata);
|
|
84635
85284
|
};
|
|
85285
|
+
CoveoInsightClient.prototype.logCaseAttach = function (info, identifier, caseMetadata) {
|
|
85286
|
+
var metadata = {
|
|
85287
|
+
documentTitle: info.documentTitle,
|
|
85288
|
+
documentURL: info.documentUrl,
|
|
85289
|
+
resultUriHash: info.documentUriHash,
|
|
85290
|
+
};
|
|
85291
|
+
return this.logClickEvent(SearchPageEvents.caseAttach, info, identifier, caseMetadata ? __assign(__assign({}, generateMetadataToSend(caseMetadata, false)), metadata) : metadata);
|
|
85292
|
+
};
|
|
85293
|
+
CoveoInsightClient.prototype.logCaseDetach = function (resultUriHash, metadata) {
|
|
85294
|
+
return this.logCustomEvent(SearchPageEvents.caseDetach, metadata ? __assign(__assign({}, generateMetadataToSend(metadata, false)), { resultUriHash: resultUriHash }) : { resultUriHash: resultUriHash });
|
|
85295
|
+
};
|
|
84636
85296
|
CoveoInsightClient.prototype.logCustomEvent = function (event, metadata) {
|
|
84637
85297
|
return __awaiter(this, void 0, void 0, function () {
|
|
84638
85298
|
var customData, payload, _a;
|