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