coveo.analytics 2.26.7 → 2.27.1
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 +4035 -4022
- package/dist/coveoua.debug.js.map +1 -1
- package/dist/coveoua.js +1 -1
- package/dist/coveoua.js.map +1 -1
- package/dist/definitions/bundle/browser-fetch.d.ts +1 -1
- package/dist/definitions/caseAssist/caseAssistActions.d.ts +76 -76
- package/dist/definitions/caseAssist/caseAssistClient.d.ts +28 -28
- package/dist/definitions/client/analytics.d.ts +116 -116
- package/dist/definitions/client/analyticsBeaconClient.d.ts +14 -14
- package/dist/definitions/client/analyticsFetchClient.d.ts +11 -11
- package/dist/definitions/client/analyticsRequestClient.d.ts +24 -24
- package/dist/definitions/client/location.d.ts +1 -1
- package/dist/definitions/client/measurementProtocolMapper.d.ts +7 -7
- package/dist/definitions/client/measurementProtocolMapping/baseMeasurementProtocolMapper.d.ts +3 -3
- package/dist/definitions/client/measurementProtocolMapping/commerceMeasurementProtocolMapper.d.ts +10 -10
- package/dist/definitions/client/measurementProtocolMapping/serviceMeasurementProtocolMapper.d.ts +6 -6
- package/dist/definitions/client/noopAnalytics.d.ts +25 -25
- package/dist/definitions/client/runtimeEnvironment.d.ts +23 -23
- package/dist/definitions/client/token.d.ts +1 -1
- package/dist/definitions/client/utils.d.ts +3 -3
- package/dist/definitions/cookieutils.d.ts +5 -5
- package/dist/definitions/coveoua/browser.d.ts +6 -6
- package/dist/definitions/coveoua/headless.d.ts +6 -6
- package/dist/definitions/coveoua/library.d.ts +17 -13
- package/dist/definitions/coveoua/plugins.d.ts +10 -10
- package/dist/definitions/coveoua/simpleanalytics.d.ts +31 -31
- package/dist/definitions/detector.d.ts +9 -9
- package/dist/definitions/donottrack.d.ts +2 -2
- package/dist/definitions/events.d.ts +113 -113
- package/dist/definitions/formatting/format-array-for-coveo-custom-data.d.ts +1 -1
- package/dist/definitions/formatting/format-omnibox-metadata.d.ts +2 -2
- package/dist/definitions/history.d.ts +33 -33
- package/dist/definitions/hook/addDefaultValues.d.ts +2 -2
- package/dist/definitions/hook/enhanceViewEvent.d.ts +2 -2
- package/dist/definitions/insight/insightClient.d.ts +81 -81
- package/dist/definitions/insight/insightEvents.d.ts +50 -50
- package/dist/definitions/plugins/BasePlugin.d.ts +58 -58
- package/dist/definitions/plugins/ec.d.ts +67 -67
- package/dist/definitions/plugins/link.d.ts +21 -21
- package/dist/definitions/plugins/svc.d.ts +32 -32
- package/dist/definitions/react-native/index.d.ts +3 -3
- package/dist/definitions/react-native/react-native-runtime.d.ts +18 -18
- package/dist/definitions/react-native/react-native-utils.d.ts +2 -2
- package/dist/definitions/searchPage/searchPageClient.d.ts +188 -188
- package/dist/definitions/searchPage/searchPageEvents.d.ts +181 -181
- package/dist/definitions/src/coveoua/browser.d.ts +6 -6
- package/dist/definitions/src/coveoua/headless.d.ts +6 -6
- package/dist/definitions/src/coveoua/library.d.ts +17 -13
- package/dist/definitions/src/coveoua/plugins.d.ts +10 -10
- package/dist/definitions/src/coveoua/simpleanalytics.d.ts +31 -31
- package/dist/definitions/src/react-native/index.d.ts +3 -3
- package/dist/definitions/src/react-native/react-native-runtime.d.ts +18 -18
- package/dist/definitions/storage.d.ts +24 -24
- package/dist/definitions/version.d.ts +1 -1
- package/dist/library.es.js +2629 -2629
- package/dist/library.js +6739 -6735
- package/dist/react-native.es.js +2644 -2644
- package/package.json +24 -25
- package/src/client/analyticsBeaconClient.spec.ts +3 -3
- package/src/coveoua/library.ts +5 -0
- package/src/coveoua/simpleanalytics.ts +3 -0
- package/src/plugins/ec.spec.ts +8 -18
- package/src/react-native/react-native.spec.ts +2 -2
- package/dist/definitions/src/plugins/ec.d.ts +0 -67
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { AnalyticsClient, ClientOptions } from '../client/analytics';
|
|
2
|
-
import { SearchEventRequest } from '../events';
|
|
3
|
-
import { DocumentIdentifier, FacetStateMetadata, PartialDocumentInformation, SearchPageEvents, SmartSnippetDocumentIdentifier, SmartSnippetFeedbackReason, SmartSnippetLinkMeta, SmartSnippetSuggestionMeta } from '../searchPage/searchPageEvents';
|
|
4
|
-
import { ExpandToFullUIMetadata, InsightEvents, InsightFacetMetadata, InsightInterfaceChangeMetadata, InsightStaticFilterToggleValueMetadata, InsightFacetRangeMetadata, InsightCategoryFacetMetadata, CaseMetadata, InsightFacetSortMeta, InsightFacetBaseMeta, InsightQueryErrorMeta, InsightPagerMetadata, InsightResultsSortMetadata, UserActionsDocumentMetadata, UserActionsPageViewMetadata } from './insightEvents';
|
|
5
|
-
export interface InsightClientProvider {
|
|
6
|
-
getSearchEventRequestPayload: () => Omit<SearchEventRequest, 'actionCause' | 'searchQueryUid'>;
|
|
7
|
-
getSearchUID: () => string;
|
|
8
|
-
getBaseMetadata: () => Record<string, any>;
|
|
9
|
-
getPipeline: () => string;
|
|
10
|
-
getOriginContext?: () => string;
|
|
11
|
-
getOriginLevel1: () => string;
|
|
12
|
-
getOriginLevel2: () => string;
|
|
13
|
-
getOriginLevel3: () => string;
|
|
14
|
-
getLanguage: () => string;
|
|
15
|
-
getIsAnonymous: () => boolean;
|
|
16
|
-
getFacetState?: () => FacetStateMetadata[];
|
|
17
|
-
}
|
|
18
|
-
export interface InsightClientOptions extends ClientOptions {
|
|
19
|
-
enableAnalytics: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare class CoveoInsightClient {
|
|
22
|
-
private opts;
|
|
23
|
-
private provider;
|
|
24
|
-
coveoAnalyticsClient: AnalyticsClient;
|
|
25
|
-
constructor(opts: Partial<InsightClientOptions>, provider: InsightClientProvider);
|
|
26
|
-
disable(): void;
|
|
27
|
-
enable(): void;
|
|
28
|
-
logInterfaceLoad(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
29
|
-
logInterfaceChange(metadata: InsightInterfaceChangeMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
30
|
-
logStaticFilterDeselect(metadata: InsightStaticFilterToggleValueMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
31
|
-
logFetchMoreResults(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
32
|
-
logBreadcrumbFacet(metadata: InsightFacetMetadata | InsightFacetRangeMetadata | InsightCategoryFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
33
|
-
logBreadcrumbResetAll(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
34
|
-
logFacetSelect(metadata: InsightFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
35
|
-
logFacetDeselect(metadata: InsightFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
36
|
-
logFacetUpdateSort(metadata: InsightFacetSortMeta): Promise<void | import("../events").SearchEventResponse>;
|
|
37
|
-
logFacetClearAll(metadata: InsightFacetBaseMeta): Promise<void | import("../events").SearchEventResponse>;
|
|
38
|
-
logFacetShowMore(metadata: InsightFacetBaseMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
39
|
-
logFacetShowLess(metadata: InsightFacetBaseMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
40
|
-
logQueryError(metadata: InsightQueryErrorMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
41
|
-
logPagerNumber(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
42
|
-
logPagerNext(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
43
|
-
logPagerPrevious(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
44
|
-
logDidYouMeanAutomatic(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
45
|
-
logDidYouMeanClick(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
46
|
-
logResultsSort(metadata: InsightResultsSortMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
47
|
-
logSearchboxSubmit(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
48
|
-
logContextChanged(metadata: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
49
|
-
logExpandToFullUI(metadata: ExpandToFullUIMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
50
|
-
logOpenUserActions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
51
|
-
logShowPrecedingSessions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
52
|
-
logShowFollowingSessions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
53
|
-
logViewedDocumentClick(document: UserActionsDocumentMetadata, metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
54
|
-
logPageViewClick(pageView: UserActionsPageViewMetadata, metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
55
|
-
logDocumentOpen(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
56
|
-
logCopyToClipboard(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
57
|
-
logDocumentQuickview(info: PartialDocumentInformation, identifier: DocumentIdentifier, caseMetadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
58
|
-
logCaseAttach(info: PartialDocumentInformation, identifier: DocumentIdentifier, caseMetadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
59
|
-
logCaseDetach(resultUriHash: string, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
60
|
-
logLikeSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
61
|
-
logDislikeSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
62
|
-
logExpandSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
63
|
-
logCollapseSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
64
|
-
logOpenSmartSnippetFeedbackModal(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
65
|
-
logCloseSmartSnippetFeedbackModal(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
66
|
-
logSmartSnippetFeedbackReason(reason: SmartSnippetFeedbackReason, details?: string, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
67
|
-
logExpandSmartSnippetSuggestion(snippet: SmartSnippetSuggestionMeta | SmartSnippetDocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
68
|
-
logCollapseSmartSnippetSuggestion(snippet: SmartSnippetSuggestionMeta | SmartSnippetDocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
69
|
-
logOpenSmartSnippetSource(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
70
|
-
logOpenSmartSnippetSuggestionSource(info: PartialDocumentInformation, snippet: SmartSnippetSuggestionMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
71
|
-
logOpenSmartSnippetInlineLink(info: PartialDocumentInformation, identifierAndLink: DocumentIdentifier & SmartSnippetLinkMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
72
|
-
logOpenSmartSnippetSuggestionInlineLink(info: PartialDocumentInformation, snippetAndLink: SmartSnippetSuggestionMeta & SmartSnippetLinkMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
73
|
-
logCustomEvent(event: SearchPageEvents | InsightEvents, metadata?: Record<string, any>): Promise<void | import("../events").CustomEventResponse>;
|
|
74
|
-
logSearchEvent(event: SearchPageEvents | InsightEvents, metadata?: Record<string, any>): Promise<void | import("../events").SearchEventResponse>;
|
|
75
|
-
logClickEvent(event: SearchPageEvents, info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: Record<string, any>): Promise<void | import("../events").ClickEventResponse>;
|
|
76
|
-
private getBaseCustomEventRequest;
|
|
77
|
-
private getBaseSearchEventRequest;
|
|
78
|
-
private getBaseEventRequest;
|
|
79
|
-
private getOrigins;
|
|
80
|
-
private getClientId;
|
|
81
|
-
}
|
|
1
|
+
import { AnalyticsClient, ClientOptions } from '../client/analytics';
|
|
2
|
+
import { SearchEventRequest } from '../events';
|
|
3
|
+
import { DocumentIdentifier, FacetStateMetadata, PartialDocumentInformation, SearchPageEvents, SmartSnippetDocumentIdentifier, SmartSnippetFeedbackReason, SmartSnippetLinkMeta, SmartSnippetSuggestionMeta } from '../searchPage/searchPageEvents';
|
|
4
|
+
import { ExpandToFullUIMetadata, InsightEvents, InsightFacetMetadata, InsightInterfaceChangeMetadata, InsightStaticFilterToggleValueMetadata, InsightFacetRangeMetadata, InsightCategoryFacetMetadata, CaseMetadata, InsightFacetSortMeta, InsightFacetBaseMeta, InsightQueryErrorMeta, InsightPagerMetadata, InsightResultsSortMetadata, UserActionsDocumentMetadata, UserActionsPageViewMetadata } from './insightEvents';
|
|
5
|
+
export interface InsightClientProvider {
|
|
6
|
+
getSearchEventRequestPayload: () => Omit<SearchEventRequest, 'actionCause' | 'searchQueryUid'>;
|
|
7
|
+
getSearchUID: () => string;
|
|
8
|
+
getBaseMetadata: () => Record<string, any>;
|
|
9
|
+
getPipeline: () => string;
|
|
10
|
+
getOriginContext?: () => string;
|
|
11
|
+
getOriginLevel1: () => string;
|
|
12
|
+
getOriginLevel2: () => string;
|
|
13
|
+
getOriginLevel3: () => string;
|
|
14
|
+
getLanguage: () => string;
|
|
15
|
+
getIsAnonymous: () => boolean;
|
|
16
|
+
getFacetState?: () => FacetStateMetadata[];
|
|
17
|
+
}
|
|
18
|
+
export interface InsightClientOptions extends ClientOptions {
|
|
19
|
+
enableAnalytics: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class CoveoInsightClient {
|
|
22
|
+
private opts;
|
|
23
|
+
private provider;
|
|
24
|
+
coveoAnalyticsClient: AnalyticsClient;
|
|
25
|
+
constructor(opts: Partial<InsightClientOptions>, provider: InsightClientProvider);
|
|
26
|
+
disable(): void;
|
|
27
|
+
enable(): void;
|
|
28
|
+
logInterfaceLoad(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
29
|
+
logInterfaceChange(metadata: InsightInterfaceChangeMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
30
|
+
logStaticFilterDeselect(metadata: InsightStaticFilterToggleValueMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
31
|
+
logFetchMoreResults(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
32
|
+
logBreadcrumbFacet(metadata: InsightFacetMetadata | InsightFacetRangeMetadata | InsightCategoryFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
33
|
+
logBreadcrumbResetAll(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
34
|
+
logFacetSelect(metadata: InsightFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
35
|
+
logFacetDeselect(metadata: InsightFacetMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
36
|
+
logFacetUpdateSort(metadata: InsightFacetSortMeta): Promise<void | import("../events").SearchEventResponse>;
|
|
37
|
+
logFacetClearAll(metadata: InsightFacetBaseMeta): Promise<void | import("../events").SearchEventResponse>;
|
|
38
|
+
logFacetShowMore(metadata: InsightFacetBaseMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
39
|
+
logFacetShowLess(metadata: InsightFacetBaseMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
40
|
+
logQueryError(metadata: InsightQueryErrorMeta): Promise<void | import("../events").CustomEventResponse>;
|
|
41
|
+
logPagerNumber(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
42
|
+
logPagerNext(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
43
|
+
logPagerPrevious(metadata: InsightPagerMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
44
|
+
logDidYouMeanAutomatic(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
45
|
+
logDidYouMeanClick(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
46
|
+
logResultsSort(metadata: InsightResultsSortMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
47
|
+
logSearchboxSubmit(metadata?: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
48
|
+
logContextChanged(metadata: CaseMetadata): Promise<void | import("../events").SearchEventResponse>;
|
|
49
|
+
logExpandToFullUI(metadata: ExpandToFullUIMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
50
|
+
logOpenUserActions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
51
|
+
logShowPrecedingSessions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
52
|
+
logShowFollowingSessions(metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
53
|
+
logViewedDocumentClick(document: UserActionsDocumentMetadata, metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
54
|
+
logPageViewClick(pageView: UserActionsPageViewMetadata, metadata: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
55
|
+
logDocumentOpen(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
56
|
+
logCopyToClipboard(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
57
|
+
logDocumentQuickview(info: PartialDocumentInformation, identifier: DocumentIdentifier, caseMetadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
58
|
+
logCaseAttach(info: PartialDocumentInformation, identifier: DocumentIdentifier, caseMetadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
59
|
+
logCaseDetach(resultUriHash: string, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
60
|
+
logLikeSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
61
|
+
logDislikeSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
62
|
+
logExpandSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
63
|
+
logCollapseSmartSnippet(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
64
|
+
logOpenSmartSnippetFeedbackModal(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
65
|
+
logCloseSmartSnippetFeedbackModal(metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
66
|
+
logSmartSnippetFeedbackReason(reason: SmartSnippetFeedbackReason, details?: string, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
67
|
+
logExpandSmartSnippetSuggestion(snippet: SmartSnippetSuggestionMeta | SmartSnippetDocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
68
|
+
logCollapseSmartSnippetSuggestion(snippet: SmartSnippetSuggestionMeta | SmartSnippetDocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").CustomEventResponse>;
|
|
69
|
+
logOpenSmartSnippetSource(info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
70
|
+
logOpenSmartSnippetSuggestionSource(info: PartialDocumentInformation, snippet: SmartSnippetSuggestionMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
71
|
+
logOpenSmartSnippetInlineLink(info: PartialDocumentInformation, identifierAndLink: DocumentIdentifier & SmartSnippetLinkMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
72
|
+
logOpenSmartSnippetSuggestionInlineLink(info: PartialDocumentInformation, snippetAndLink: SmartSnippetSuggestionMeta & SmartSnippetLinkMeta, metadata?: CaseMetadata): Promise<void | import("../events").ClickEventResponse>;
|
|
73
|
+
logCustomEvent(event: SearchPageEvents | InsightEvents, metadata?: Record<string, any>): Promise<void | import("../events").CustomEventResponse>;
|
|
74
|
+
logSearchEvent(event: SearchPageEvents | InsightEvents, metadata?: Record<string, any>): Promise<void | import("../events").SearchEventResponse>;
|
|
75
|
+
logClickEvent(event: SearchPageEvents, info: PartialDocumentInformation, identifier: DocumentIdentifier, metadata?: Record<string, any>): Promise<void | import("../events").ClickEventResponse>;
|
|
76
|
+
private getBaseCustomEventRequest;
|
|
77
|
+
private getBaseSearchEventRequest;
|
|
78
|
+
private getBaseEventRequest;
|
|
79
|
+
private getOrigins;
|
|
80
|
+
private getClientId;
|
|
81
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { CategoryFacetMetadata, FacetBaseMeta, FacetMetadata, FacetRangeMetadata, FacetSortMeta, InterfaceChangeMetadata, PagerMetadata, QueryErrorMeta, ResultsSortMetadata, StaticFilterToggleValueMetadata } from '../searchPage/searchPageEvents';
|
|
2
|
-
export declare enum InsightEvents {
|
|
3
|
-
contextChanged = "contextChanged",
|
|
4
|
-
expandToFullUI = "expandToFullUI",
|
|
5
|
-
openUserActions = "openUserActions",
|
|
6
|
-
showPrecedingSessions = "showPrecedingSessions",
|
|
7
|
-
showFollowingSessions = "showFollowingSessions",
|
|
8
|
-
clickViewedDocument = "clickViewedDocument",
|
|
9
|
-
clickPageView = "clickPageView"
|
|
10
|
-
}
|
|
11
|
-
export interface CaseMetadata {
|
|
12
|
-
caseId?: string;
|
|
13
|
-
caseNumber?: string;
|
|
14
|
-
caseContext?: Record<string, string>;
|
|
15
|
-
}
|
|
16
|
-
export interface ExpandToFullUIMetadata extends CaseMetadata {
|
|
17
|
-
fullSearchComponentName: string;
|
|
18
|
-
triggeredBy: string;
|
|
19
|
-
}
|
|
20
|
-
export interface UserActionsDocumentMetadata {
|
|
21
|
-
title: string;
|
|
22
|
-
uri: string;
|
|
23
|
-
uriHash?: string;
|
|
24
|
-
permanentId?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface UserActionsPageViewMetadata {
|
|
27
|
-
title: string;
|
|
28
|
-
contentIdKey: string;
|
|
29
|
-
contentIdValue: string;
|
|
30
|
-
}
|
|
31
|
-
export interface InsightInterfaceChangeMetadata extends InterfaceChangeMetadata, CaseMetadata {
|
|
32
|
-
}
|
|
33
|
-
export interface InsightFacetMetadata extends FacetMetadata, CaseMetadata {
|
|
34
|
-
}
|
|
35
|
-
export interface InsightStaticFilterToggleValueMetadata extends StaticFilterToggleValueMetadata, CaseMetadata {
|
|
36
|
-
}
|
|
37
|
-
export interface InsightFacetRangeMetadata extends FacetRangeMetadata, CaseMetadata {
|
|
38
|
-
}
|
|
39
|
-
export interface InsightCategoryFacetMetadata extends CategoryFacetMetadata, CaseMetadata {
|
|
40
|
-
}
|
|
41
|
-
export interface InsightFacetSortMeta extends FacetSortMeta, CaseMetadata {
|
|
42
|
-
}
|
|
43
|
-
export interface InsightFacetBaseMeta extends FacetBaseMeta, CaseMetadata {
|
|
44
|
-
}
|
|
45
|
-
export interface InsightQueryErrorMeta extends QueryErrorMeta, CaseMetadata {
|
|
46
|
-
}
|
|
47
|
-
export interface InsightPagerMetadata extends PagerMetadata, CaseMetadata {
|
|
48
|
-
}
|
|
49
|
-
export interface InsightResultsSortMetadata extends ResultsSortMetadata, CaseMetadata {
|
|
50
|
-
}
|
|
1
|
+
import { CategoryFacetMetadata, FacetBaseMeta, FacetMetadata, FacetRangeMetadata, FacetSortMeta, InterfaceChangeMetadata, PagerMetadata, QueryErrorMeta, ResultsSortMetadata, StaticFilterToggleValueMetadata } from '../searchPage/searchPageEvents';
|
|
2
|
+
export declare enum InsightEvents {
|
|
3
|
+
contextChanged = "contextChanged",
|
|
4
|
+
expandToFullUI = "expandToFullUI",
|
|
5
|
+
openUserActions = "openUserActions",
|
|
6
|
+
showPrecedingSessions = "showPrecedingSessions",
|
|
7
|
+
showFollowingSessions = "showFollowingSessions",
|
|
8
|
+
clickViewedDocument = "clickViewedDocument",
|
|
9
|
+
clickPageView = "clickPageView"
|
|
10
|
+
}
|
|
11
|
+
export interface CaseMetadata {
|
|
12
|
+
caseId?: string;
|
|
13
|
+
caseNumber?: string;
|
|
14
|
+
caseContext?: Record<string, string>;
|
|
15
|
+
}
|
|
16
|
+
export interface ExpandToFullUIMetadata extends CaseMetadata {
|
|
17
|
+
fullSearchComponentName: string;
|
|
18
|
+
triggeredBy: string;
|
|
19
|
+
}
|
|
20
|
+
export interface UserActionsDocumentMetadata {
|
|
21
|
+
title: string;
|
|
22
|
+
uri: string;
|
|
23
|
+
uriHash?: string;
|
|
24
|
+
permanentId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface UserActionsPageViewMetadata {
|
|
27
|
+
title: string;
|
|
28
|
+
contentIdKey: string;
|
|
29
|
+
contentIdValue: string;
|
|
30
|
+
}
|
|
31
|
+
export interface InsightInterfaceChangeMetadata extends InterfaceChangeMetadata, CaseMetadata {
|
|
32
|
+
}
|
|
33
|
+
export interface InsightFacetMetadata extends FacetMetadata, CaseMetadata {
|
|
34
|
+
}
|
|
35
|
+
export interface InsightStaticFilterToggleValueMetadata extends StaticFilterToggleValueMetadata, CaseMetadata {
|
|
36
|
+
}
|
|
37
|
+
export interface InsightFacetRangeMetadata extends FacetRangeMetadata, CaseMetadata {
|
|
38
|
+
}
|
|
39
|
+
export interface InsightCategoryFacetMetadata extends CategoryFacetMetadata, CaseMetadata {
|
|
40
|
+
}
|
|
41
|
+
export interface InsightFacetSortMeta extends FacetSortMeta, CaseMetadata {
|
|
42
|
+
}
|
|
43
|
+
export interface InsightFacetBaseMeta extends FacetBaseMeta, CaseMetadata {
|
|
44
|
+
}
|
|
45
|
+
export interface InsightQueryErrorMeta extends QueryErrorMeta, CaseMetadata {
|
|
46
|
+
}
|
|
47
|
+
export interface InsightPagerMetadata extends PagerMetadata, CaseMetadata {
|
|
48
|
+
}
|
|
49
|
+
export interface InsightResultsSortMetadata extends ResultsSortMetadata, CaseMetadata {
|
|
50
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { AnalyticsClient } from '../client/analytics';
|
|
2
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
-
|
|
4
|
-
readonly Id: string;
|
|
5
|
-
};
|
|
6
|
-
export
|
|
7
|
-
export declare const BasePluginEventTypes: {
|
|
8
|
-
pageview: string;
|
|
9
|
-
event: string;
|
|
10
|
-
};
|
|
11
|
-
export
|
|
12
|
-
client: AnalyticsClient;
|
|
13
|
-
uuidGenerator?: typeof uuidv4;
|
|
14
|
-
};
|
|
15
|
-
export declare abstract class Plugin {
|
|
16
|
-
protected client: AnalyticsClient;
|
|
17
|
-
protected uuidGenerator: typeof uuidv4;
|
|
18
|
-
constructor({ client, uuidGenerator }: PluginOptions);
|
|
19
|
-
abstract getApi(name: string): any;
|
|
20
|
-
}
|
|
21
|
-
export declare abstract class BasePlugin extends Plugin {
|
|
22
|
-
protected action?: string;
|
|
23
|
-
protected actionData: {
|
|
24
|
-
[name: string]: string;
|
|
25
|
-
};
|
|
26
|
-
private pageViewId;
|
|
27
|
-
private nextPageViewId;
|
|
28
|
-
private hasSentFirstPageView?;
|
|
29
|
-
private currentLocation;
|
|
30
|
-
private lastReferrer;
|
|
31
|
-
constructor({ client, uuidGenerator }: PluginOptions);
|
|
32
|
-
protected abstract addHooks(): void;
|
|
33
|
-
protected abstract clearPluginData(): void;
|
|
34
|
-
getApi(name: string): Function | null;
|
|
35
|
-
setAction(action: string, options?: any): void;
|
|
36
|
-
clearData(): void;
|
|
37
|
-
getLocationInformation(eventType: string, payload: any): {
|
|
38
|
-
pageViewId: string;
|
|
39
|
-
referrer: string;
|
|
40
|
-
location: string;
|
|
41
|
-
hitType: string;
|
|
42
|
-
};
|
|
43
|
-
protected updateLocationInformation(eventType: string, payload: any): void;
|
|
44
|
-
getDefaultContextInformation(eventType: string): {
|
|
45
|
-
title: string;
|
|
46
|
-
encoding: string;
|
|
47
|
-
language: string;
|
|
48
|
-
userAgent: string;
|
|
49
|
-
screenResolution: string;
|
|
50
|
-
screenColor: string;
|
|
51
|
-
time: number;
|
|
52
|
-
eventId: string;
|
|
53
|
-
};
|
|
54
|
-
private updateLocationForNextPageView;
|
|
55
|
-
private getNextValues;
|
|
56
|
-
private getCurrentLocationFromPayload;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
|
1
|
+
import { AnalyticsClient } from '../client/analytics';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
type PluginWithId = {
|
|
4
|
+
readonly Id: string;
|
|
5
|
+
};
|
|
6
|
+
export type PluginClass = typeof Plugin & PluginWithId;
|
|
7
|
+
export declare const BasePluginEventTypes: {
|
|
8
|
+
pageview: string;
|
|
9
|
+
event: string;
|
|
10
|
+
};
|
|
11
|
+
export type PluginOptions = {
|
|
12
|
+
client: AnalyticsClient;
|
|
13
|
+
uuidGenerator?: typeof uuidv4;
|
|
14
|
+
};
|
|
15
|
+
export declare abstract class Plugin {
|
|
16
|
+
protected client: AnalyticsClient;
|
|
17
|
+
protected uuidGenerator: typeof uuidv4;
|
|
18
|
+
constructor({ client, uuidGenerator }: PluginOptions);
|
|
19
|
+
abstract getApi(name: string): any;
|
|
20
|
+
}
|
|
21
|
+
export declare abstract class BasePlugin extends Plugin {
|
|
22
|
+
protected action?: string;
|
|
23
|
+
protected actionData: {
|
|
24
|
+
[name: string]: string;
|
|
25
|
+
};
|
|
26
|
+
private pageViewId;
|
|
27
|
+
private nextPageViewId;
|
|
28
|
+
private hasSentFirstPageView?;
|
|
29
|
+
private currentLocation;
|
|
30
|
+
private lastReferrer;
|
|
31
|
+
constructor({ client, uuidGenerator }: PluginOptions);
|
|
32
|
+
protected abstract addHooks(): void;
|
|
33
|
+
protected abstract clearPluginData(): void;
|
|
34
|
+
getApi(name: string): Function | null;
|
|
35
|
+
setAction(action: string, options?: any): void;
|
|
36
|
+
clearData(): void;
|
|
37
|
+
getLocationInformation(eventType: string, payload: any): {
|
|
38
|
+
pageViewId: string;
|
|
39
|
+
referrer: string;
|
|
40
|
+
location: string;
|
|
41
|
+
hitType: string;
|
|
42
|
+
};
|
|
43
|
+
protected updateLocationInformation(eventType: string, payload: any): void;
|
|
44
|
+
getDefaultContextInformation(eventType: string): {
|
|
45
|
+
title: string;
|
|
46
|
+
encoding: string;
|
|
47
|
+
language: string;
|
|
48
|
+
userAgent: string;
|
|
49
|
+
screenResolution: string;
|
|
50
|
+
screenColor: string;
|
|
51
|
+
time: number;
|
|
52
|
+
eventId: string;
|
|
53
|
+
};
|
|
54
|
+
private updateLocationForNextPageView;
|
|
55
|
+
private getNextValues;
|
|
56
|
+
private getCurrentLocationFromPayload;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { BasePlugin, PluginClass, PluginOptions } from './BasePlugin';
|
|
2
|
-
export declare const ECPluginEventTypes: {
|
|
3
|
-
pageview: string;
|
|
4
|
-
event: string;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
8
|
-
}[Keys];
|
|
9
|
-
export
|
|
10
|
-
[key: string]: string | number | boolean;
|
|
11
|
-
};
|
|
12
|
-
export interface CoveoExtensionProperties {
|
|
13
|
-
group?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface ProductProperties extends CoveoExtensionProperties {
|
|
16
|
-
id?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
brand?: string;
|
|
19
|
-
category?: string;
|
|
20
|
-
variant?: string;
|
|
21
|
-
price?: number;
|
|
22
|
-
quantity?: number;
|
|
23
|
-
coupon?: string;
|
|
24
|
-
position?: number;
|
|
25
|
-
custom?: CustomValues;
|
|
26
|
-
}
|
|
27
|
-
export
|
|
28
|
-
export interface ImpressionProperties extends CoveoExtensionProperties {
|
|
29
|
-
id?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
list?: string;
|
|
32
|
-
brand?: string;
|
|
33
|
-
category?: string;
|
|
34
|
-
variant?: string;
|
|
35
|
-
position?: number;
|
|
36
|
-
price?: number;
|
|
37
|
-
custom?: CustomValues;
|
|
38
|
-
}
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export interface ImpressionList {
|
|
42
|
-
listName?: string;
|
|
43
|
-
impressions: BaseImpression[];
|
|
44
|
-
}
|
|
45
|
-
export declare class ECPlugin extends BasePlugin {
|
|
46
|
-
static readonly Id = "ec";
|
|
47
|
-
private products;
|
|
48
|
-
private impressions;
|
|
49
|
-
constructor({ client, uuidGenerator }: PluginOptions);
|
|
50
|
-
getApi(name: string): Function | null;
|
|
51
|
-
protected addHooks(): void;
|
|
52
|
-
addProduct(product: Product): void;
|
|
53
|
-
addImpression(impression: Impression): void;
|
|
54
|
-
protected clearPluginData(): void;
|
|
55
|
-
private addHooksForECEvents;
|
|
56
|
-
private addHooksForPageView;
|
|
57
|
-
private addHooksForEvent;
|
|
58
|
-
private addECDataToPayload;
|
|
59
|
-
private getProductPayload;
|
|
60
|
-
private convertNumberTypes;
|
|
61
|
-
private getImpressionPayload;
|
|
62
|
-
private assureProductValidity;
|
|
63
|
-
private assureBaseImpressionValidity;
|
|
64
|
-
private getImpressionsByList;
|
|
65
|
-
}
|
|
66
|
-
export declare const EC: PluginClass;
|
|
67
|
-
export {};
|
|
1
|
+
import { BasePlugin, PluginClass, PluginOptions } from './BasePlugin';
|
|
2
|
+
export declare const ECPluginEventTypes: {
|
|
3
|
+
pageview: string;
|
|
4
|
+
event: string;
|
|
5
|
+
};
|
|
6
|
+
type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
7
|
+
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
8
|
+
}[Keys];
|
|
9
|
+
export type CustomValues = {
|
|
10
|
+
[key: string]: string | number | boolean;
|
|
11
|
+
};
|
|
12
|
+
export interface CoveoExtensionProperties {
|
|
13
|
+
group?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProductProperties extends CoveoExtensionProperties {
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
brand?: string;
|
|
19
|
+
category?: string;
|
|
20
|
+
variant?: string;
|
|
21
|
+
price?: number;
|
|
22
|
+
quantity?: number;
|
|
23
|
+
coupon?: string;
|
|
24
|
+
position?: number;
|
|
25
|
+
custom?: CustomValues;
|
|
26
|
+
}
|
|
27
|
+
export type Product = RequireAtLeastOne<ProductProperties, 'id' | 'name'>;
|
|
28
|
+
export interface ImpressionProperties extends CoveoExtensionProperties {
|
|
29
|
+
id?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
list?: string;
|
|
32
|
+
brand?: string;
|
|
33
|
+
category?: string;
|
|
34
|
+
variant?: string;
|
|
35
|
+
position?: number;
|
|
36
|
+
price?: number;
|
|
37
|
+
custom?: CustomValues;
|
|
38
|
+
}
|
|
39
|
+
export type Impression = RequireAtLeastOne<ImpressionProperties, 'id' | 'name'>;
|
|
40
|
+
export type BaseImpression = Omit<Impression, 'list'>;
|
|
41
|
+
export interface ImpressionList {
|
|
42
|
+
listName?: string;
|
|
43
|
+
impressions: BaseImpression[];
|
|
44
|
+
}
|
|
45
|
+
export declare class ECPlugin extends BasePlugin {
|
|
46
|
+
static readonly Id = "ec";
|
|
47
|
+
private products;
|
|
48
|
+
private impressions;
|
|
49
|
+
constructor({ client, uuidGenerator }: PluginOptions);
|
|
50
|
+
getApi(name: string): Function | null;
|
|
51
|
+
protected addHooks(): void;
|
|
52
|
+
addProduct(product: Product): void;
|
|
53
|
+
addImpression(impression: Impression): void;
|
|
54
|
+
protected clearPluginData(): void;
|
|
55
|
+
private addHooksForECEvents;
|
|
56
|
+
private addHooksForPageView;
|
|
57
|
+
private addHooksForEvent;
|
|
58
|
+
private addECDataToPayload;
|
|
59
|
+
private getProductPayload;
|
|
60
|
+
private convertNumberTypes;
|
|
61
|
+
private getImpressionPayload;
|
|
62
|
+
private assureProductValidity;
|
|
63
|
+
private assureBaseImpressionValidity;
|
|
64
|
+
private getImpressionsByList;
|
|
65
|
+
}
|
|
66
|
+
export declare const EC: PluginClass;
|
|
67
|
+
export {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Plugin, PluginOptions, PluginClass } from './BasePlugin';
|
|
2
|
-
export declare class CoveoLinkParam {
|
|
3
|
-
static readonly cvo_cid: string;
|
|
4
|
-
private static readonly expirationTime;
|
|
5
|
-
readonly clientId: string;
|
|
6
|
-
readonly creationDate: number;
|
|
7
|
-
constructor(clientId: string, timestamp: number);
|
|
8
|
-
toString(): string;
|
|
9
|
-
get expired(): boolean;
|
|
10
|
-
validate(referrerString: string, referrerList: string[]): boolean;
|
|
11
|
-
private matchReferrer;
|
|
12
|
-
static fromString(input: string): CoveoLinkParam | null;
|
|
13
|
-
}
|
|
14
|
-
export declare class LinkPlugin extends Plugin {
|
|
15
|
-
static readonly Id = "link";
|
|
16
|
-
constructor({ client, uuidGenerator }: PluginOptions);
|
|
17
|
-
getApi(name: string): Function | null;
|
|
18
|
-
decorate(urlString: string): Promise<string>;
|
|
19
|
-
acceptFrom(acceptedReferrers: string[]): void;
|
|
20
|
-
}
|
|
21
|
-
export declare const Link: PluginClass;
|
|
1
|
+
import { Plugin, PluginOptions, PluginClass } from './BasePlugin';
|
|
2
|
+
export declare class CoveoLinkParam {
|
|
3
|
+
static readonly cvo_cid: string;
|
|
4
|
+
private static readonly expirationTime;
|
|
5
|
+
readonly clientId: string;
|
|
6
|
+
readonly creationDate: number;
|
|
7
|
+
constructor(clientId: string, timestamp: number);
|
|
8
|
+
toString(): string;
|
|
9
|
+
get expired(): boolean;
|
|
10
|
+
validate(referrerString: string, referrerList: string[]): boolean;
|
|
11
|
+
private matchReferrer;
|
|
12
|
+
static fromString(input: string): CoveoLinkParam | null;
|
|
13
|
+
}
|
|
14
|
+
export declare class LinkPlugin extends Plugin {
|
|
15
|
+
static readonly Id = "link";
|
|
16
|
+
constructor({ client, uuidGenerator }: PluginOptions);
|
|
17
|
+
getApi(name: string): Function | null;
|
|
18
|
+
decorate(urlString: string): Promise<string>;
|
|
19
|
+
acceptFrom(acceptedReferrers: string[]): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const Link: PluginClass;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { BasePlugin, PluginClass, PluginOptions } from './BasePlugin';
|
|
2
|
-
export declare const SVCPluginEventTypes: {
|
|
3
|
-
pageview: string;
|
|
4
|
-
event: string;
|
|
5
|
-
};
|
|
6
|
-
export
|
|
7
|
-
[key: string]: string | number | boolean;
|
|
8
|
-
};
|
|
9
|
-
export interface TicketProperties {
|
|
10
|
-
id?: string;
|
|
11
|
-
subject?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
category?: string;
|
|
14
|
-
productId?: string;
|
|
15
|
-
custom?: CustomValues;
|
|
16
|
-
}
|
|
17
|
-
export
|
|
18
|
-
export declare class SVCPlugin extends BasePlugin {
|
|
19
|
-
static readonly Id = "svc";
|
|
20
|
-
private ticket;
|
|
21
|
-
constructor({ client, uuidGenerator }: PluginOptions);
|
|
22
|
-
getApi(name: string): Function | null;
|
|
23
|
-
protected addHooks(): void;
|
|
24
|
-
setTicket(ticket: Ticket): void;
|
|
25
|
-
protected clearPluginData(): void;
|
|
26
|
-
private addHooksForSVCEvents;
|
|
27
|
-
private addHooksForPageView;
|
|
28
|
-
private addHooksForEvent;
|
|
29
|
-
private addSVCDataToPayload;
|
|
30
|
-
private getTicketPayload;
|
|
31
|
-
}
|
|
32
|
-
export declare const SVC: PluginClass;
|
|
1
|
+
import { BasePlugin, PluginClass, PluginOptions } from './BasePlugin';
|
|
2
|
+
export declare const SVCPluginEventTypes: {
|
|
3
|
+
pageview: string;
|
|
4
|
+
event: string;
|
|
5
|
+
};
|
|
6
|
+
export type CustomValues = {
|
|
7
|
+
[key: string]: string | number | boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface TicketProperties {
|
|
10
|
+
id?: string;
|
|
11
|
+
subject?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
category?: string;
|
|
14
|
+
productId?: string;
|
|
15
|
+
custom?: CustomValues;
|
|
16
|
+
}
|
|
17
|
+
export type Ticket = TicketProperties;
|
|
18
|
+
export declare class SVCPlugin extends BasePlugin {
|
|
19
|
+
static readonly Id = "svc";
|
|
20
|
+
private ticket;
|
|
21
|
+
constructor({ client, uuidGenerator }: PluginOptions);
|
|
22
|
+
getApi(name: string): Function | null;
|
|
23
|
+
protected addHooks(): void;
|
|
24
|
+
setTicket(ticket: Ticket): void;
|
|
25
|
+
protected clearPluginData(): void;
|
|
26
|
+
private addHooksForSVCEvents;
|
|
27
|
+
private addHooksForPageView;
|
|
28
|
+
private addHooksForEvent;
|
|
29
|
+
private addSVCDataToPayload;
|
|
30
|
+
private getTicketPayload;
|
|
31
|
+
}
|
|
32
|
+
export declare const SVC: PluginClass;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ReactNativeRuntime, ReactNativeRuntimeOptions, ReactNativeStorage } from './react-native-runtime';
|
|
2
|
-
export * from '../coveoua/headless';
|
|
3
|
-
import 'react-native-get-random-values';
|
|
1
|
+
export { ReactNativeRuntime, ReactNativeRuntimeOptions, ReactNativeStorage } from './react-native-runtime';
|
|
2
|
+
export * from '../coveoua/headless';
|
|
3
|
+
import 'react-native-get-random-values';
|