coveo.analytics 2.18.66 → 2.19.3
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.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/searchPage/searchPageEvents.d.ts +1 -6
- package/dist/library.es.js +1 -8
- package/dist/library.js +1 -8
- package/package.json +2 -2
- package/src/searchPage/searchPageClient.spec.ts +2 -2
- package/src/searchPage/searchPageEvents.ts +1 -6
|
@@ -143,12 +143,7 @@ export interface QueryErrorMeta {
|
|
|
143
143
|
errorType: string;
|
|
144
144
|
errorMessage: string;
|
|
145
145
|
}
|
|
146
|
-
export declare
|
|
147
|
-
DoesNotAnswer = "does_not_answer",
|
|
148
|
-
PartiallyAnswers = "partially_answers",
|
|
149
|
-
WasNotAQuestion = "was_not_a_question",
|
|
150
|
-
Other = "other"
|
|
151
|
-
}
|
|
146
|
+
export declare type SmartSnippetFeedbackReason = 'does_not_answer' | 'partially_answers' | 'was_not_a_question' | 'other';
|
|
152
147
|
export interface SmartSnippetSuggestionMeta {
|
|
153
148
|
contentIdKey: string;
|
|
154
149
|
contentIdValue: string;
|
package/dist/library.es.js
CHANGED
|
@@ -1147,14 +1147,7 @@ const CustomEventsTypes = {
|
|
|
1147
1147
|
[SearchPageEvents.clearRecentQueries]: 'recentQueries',
|
|
1148
1148
|
[SearchPageEvents.recentResultClick]: 'recentlyClickedDocuments',
|
|
1149
1149
|
[SearchPageEvents.clearRecentResults]: 'recentlyClickedDocuments',
|
|
1150
|
-
};
|
|
1151
|
-
var SmartSnippetFeedbackReason;
|
|
1152
|
-
(function (SmartSnippetFeedbackReason) {
|
|
1153
|
-
SmartSnippetFeedbackReason["DoesNotAnswer"] = "does_not_answer";
|
|
1154
|
-
SmartSnippetFeedbackReason["PartiallyAnswers"] = "partially_answers";
|
|
1155
|
-
SmartSnippetFeedbackReason["WasNotAQuestion"] = "was_not_a_question";
|
|
1156
|
-
SmartSnippetFeedbackReason["Other"] = "other";
|
|
1157
|
-
})(SmartSnippetFeedbackReason || (SmartSnippetFeedbackReason = {}));
|
|
1150
|
+
};
|
|
1158
1151
|
|
|
1159
1152
|
class NoopAnalytics {
|
|
1160
1153
|
constructor() {
|
package/dist/library.js
CHANGED
|
@@ -83764,14 +83764,7 @@ var CustomEventsTypes = (_a = {},
|
|
|
83764
83764
|
_a[SearchPageEvents.clearRecentQueries] = 'recentQueries',
|
|
83765
83765
|
_a[SearchPageEvents.recentResultClick] = 'recentlyClickedDocuments',
|
|
83766
83766
|
_a[SearchPageEvents.clearRecentResults] = 'recentlyClickedDocuments',
|
|
83767
|
-
_a);
|
|
83768
|
-
var SmartSnippetFeedbackReason;
|
|
83769
|
-
(function (SmartSnippetFeedbackReason) {
|
|
83770
|
-
SmartSnippetFeedbackReason["DoesNotAnswer"] = "does_not_answer";
|
|
83771
|
-
SmartSnippetFeedbackReason["PartiallyAnswers"] = "partially_answers";
|
|
83772
|
-
SmartSnippetFeedbackReason["WasNotAQuestion"] = "was_not_a_question";
|
|
83773
|
-
SmartSnippetFeedbackReason["Other"] = "other";
|
|
83774
|
-
})(SmartSnippetFeedbackReason || (SmartSnippetFeedbackReason = {}));
|
|
83767
|
+
_a);
|
|
83775
83768
|
|
|
83776
83769
|
var NoopAnalytics = (function () {
|
|
83777
83770
|
function NoopAnalytics() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coveo.analytics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.3",
|
|
4
4
|
"description": "📈 Coveo analytics client (node and browser compatible) ",
|
|
5
5
|
"main": "dist/library.js",
|
|
6
6
|
"module": "dist/library.es.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@react-native-async-storage/async-storage": "^1.15.
|
|
26
|
+
"@react-native-async-storage/async-storage": "^1.15.17",
|
|
27
27
|
"cross-fetch": "^3.1.5"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -506,10 +506,10 @@ describe('SearchPageClient', () => {
|
|
|
506
506
|
});
|
|
507
507
|
|
|
508
508
|
it('should send proper payload for #logSmartSnippetFeedbackReason', async () => {
|
|
509
|
-
await client.logSmartSnippetFeedbackReason(
|
|
509
|
+
await client.logSmartSnippetFeedbackReason('does_not_answer', 'this is irrelevant');
|
|
510
510
|
expectMatchCustomEventPayload(SearchPageEvents.sendSmartSnippetReason, {
|
|
511
511
|
details: 'this is irrelevant',
|
|
512
|
-
reason:
|
|
512
|
+
reason: 'does_not_answer',
|
|
513
513
|
});
|
|
514
514
|
});
|
|
515
515
|
|
|
@@ -370,12 +370,7 @@ export interface QueryErrorMeta {
|
|
|
370
370
|
errorMessage: string;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
export
|
|
374
|
-
DoesNotAnswer = 'does_not_answer',
|
|
375
|
-
PartiallyAnswers = 'partially_answers',
|
|
376
|
-
WasNotAQuestion = 'was_not_a_question',
|
|
377
|
-
Other = 'other',
|
|
378
|
-
}
|
|
373
|
+
export type SmartSnippetFeedbackReason = 'does_not_answer' | 'partially_answers' | 'was_not_a_question' | 'other';
|
|
379
374
|
|
|
380
375
|
export interface SmartSnippetSuggestionMeta {
|
|
381
376
|
contentIdKey: string;
|