@coveo/usage-analytics-event-types 6.24.2 → 6.25.0
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/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Coveo Usage Analytics Event Types
|
|
2
|
+
|
|
3
|
+
This package contains automatically generated TypeScript types for Coveo [Usage Analytics Events](https://docs.coveo.com/en/1373/build-a-search-ui/log-usage-analytics-events), and is intended to be used in combination with [coveo.analytics.js](https://github.com/coveo/coveo.analytics.js) or other integrations which communicate with the usage analytics service.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install using `npm install @coveo/usage-analytics-event-types`
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
Import desired event type, e.g. for an `UsageAnalyticsCustom` event:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
import {UsageAnalyticsCustom} from '@coveo/usage-analytics-event-types';
|
|
15
|
+
|
|
16
|
+
const myCustomEvent:UsageAnalyticsCustom = {
|
|
17
|
+
eventType: 'clickButton',
|
|
18
|
+
eventValue: 'back',
|
|
19
|
+
clientId: '2ce196c1-5859-42da-b051-63e77ae2b406',
|
|
20
|
+
language: 'en-us'
|
|
21
|
+
}
|
|
22
|
+
```
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coveo/usage-analytics-event-types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.25.0",
|
|
4
4
|
"description": "Typescript types for Coveo Usage Analytics Events",
|
|
5
|
-
"types": "./usage-analytics-types.d.ts",
|
|
5
|
+
"types": "./usage-analytics-event-types.d.ts",
|
|
6
6
|
"author": "Coveo",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"keywords": [
|
|
@@ -101,7 +101,7 @@ interface SearchResult {
|
|
|
101
101
|
export interface UsageAnalyticsClick {
|
|
102
102
|
actionCause: "interfaceLoad" | "interfaceChange" | "contextRemove" | "didyoumeanAutomatic" | "didyoumeanClick" | "resultsSort" | "searchboxSubmit" | "searchboxClear" | "searchboxAsYouType" | "breadcrumbFacet" | "breadcrumbAdvancedSearch" | "breadcrumbResetAll" | "documentTag" | "documentField" | "documentQuickview" | "documentOpen" | "omniboxFacetSelect" | "omniboxFacetExclude" | "omniboxFacetDeselect" | "omniboxFacetUnexclude" | "omniboxAnalytics" | "omniboxFromLink" | "omniboxField" | "facetClearAll" | "facetSearch" | "facetToggle" | "facetRangeSlider" | "facetRangeGraph" | "facetSelect" | "facetSelectAll" | "facetDeselect" | "facetExclude" | "facetUnexclude" | "facetUpdateSort" | "showMoreFacetResults" | "showLessFacetResults" | "categoryFacetSelect" | "categoryFacetReload" | "categoryFacetClear" | "categoryFacetBreadcrumb" | "categoryFacetSearch" | "errorBack" | "errorClearQuery" | "errorRetry" | "noResultsBack" | "expandToFullUI" | "inputChange" | "submitButton" | "cancelButton" | "unloadPage" | "casecontextAdd" | "casecontextRemove" | "contextChanged" | "preferencesChange" | "getUserHistory" | "userActionDocumentClick" | "caseAttach" | "caseDetach" | "customfiltersChange" | "pagerNumber" | "pagerNext" | "pagerPrevious" | "pagerScrolling" | "pagerResize" | "positionSet" | "searchFromLink" | "notify" | "execute" | "query" | "redirect" | "exportToExcel" | "recommendation" | "recommendationInterfaceLoad" | "recommendationOpen" | "advancedSearch" | "followDocument" | "followQuery" | "updateSubscription" | "deleteSubscription" | "unfollowDocument" | "unfollowQuery" | "selectValue" | "deselectValue" | "clearAll" | "changeResultsLayout" | "showMoreFoldedResults" | "showLessFoldedResults" | "addMissingTerm" | "removeMissingTerm" | "showQuerySuggestPreview" | "clickQuerySuggestPreview" | "likeSmartSnippet" | "dislikeSmartSnippet" | "expandSmartSnippet" | "collapseSmartSnippet" | "openSmartSnippetFeedbackModal" | "closeSmartSnippetFeedbackModal" | "sendSmartSnippetReason" | "openSmartSnippetSource" | "expandSmartSnippetSuggestion" | "collapseSmartSnippetSuggestion" | "openSmartSnippetSuggestionSource" | "staticFilterClearAll" | "staticFilterSelect" | "staticFilterDeselect" | "recentQueriesClick" | "clearRecentQueries" | "recentResultClick" | "clearRecentResults" | "copyToClipboard" | "topQueriesClick" | "userActionLoad" | "userActionsSubmit" | "openUserActions" | "historyBackward" | "enterOnSearchbox" | "quickviewLoaded" | "openQuickview" | "sendAsEmail" | "postToFeed" | "sendToLiveAgent" | "attachToCaseStateChanged" | "attachedResultsLoad" | "CaseInputChange" | "attachedResultsChange" | "openSmartSnippetInlineLink" | "openSmartSnippetSuggestionInlineLink" | "Case.SendEmail" | "FeedItem.TextPost";
|
|
103
103
|
/**
|
|
104
|
-
* The 1-based index position of the item that was clicked in the result list. This number must take into consideration pagination settings. If the pages contain ten results each, the third item of the second page is at the position 23.
|
|
104
|
+
* The 1-based index position of the item that was clicked in the result list. This number must take into consideration pagination settings. If the pages contain ten results each, the third item of the second page is at the position 23. Can be no larger than 32767.
|
|
105
105
|
*/
|
|
106
106
|
documentPosition: number;
|
|
107
107
|
/**
|