coveo.analytics 2.18.53 → 2.18.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.18.53",
3
+ "version": "2.18.54",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -1,53 +0,0 @@
1
- import { AnalyticsClient } from '../client/analytics';
2
- import { uuidv4 } from '../client/crypto';
3
- declare type PluginWithId = {
4
- readonly Id: string;
5
- };
6
- export declare type PluginClass = typeof BasePlugin & PluginWithId;
7
- export declare const BasePluginEventTypes: {
8
- pageview: string;
9
- event: string;
10
- };
11
- export declare type PluginOptions = {
12
- client: AnalyticsClient;
13
- uuidGenerator?: typeof uuidv4;
14
- };
15
- export declare abstract class BasePlugin {
16
- protected client: AnalyticsClient;
17
- protected uuidGenerator: typeof uuidv4;
18
- protected action?: string;
19
- protected actionData: {
20
- [name: string]: string;
21
- };
22
- private pageViewId;
23
- private nextPageViewId;
24
- private hasSentFirstPageView?;
25
- private currentLocation;
26
- private lastReferrer;
27
- constructor({ client, uuidGenerator }: PluginOptions);
28
- protected abstract addHooks(): void;
29
- protected abstract clearPluginData(): void;
30
- setAction(action: string, options?: any): void;
31
- clearData(): void;
32
- getLocationInformation(eventType: string, payload: any): {
33
- pageViewId: string;
34
- referrer: string;
35
- location: string;
36
- hitType: string;
37
- };
38
- updateLocationInformation(eventType: string, payload: any): void;
39
- getDefaultContextInformation(eventType: string): {
40
- title: string;
41
- encoding: string;
42
- language: string;
43
- userAgent: string;
44
- screenResolution: string;
45
- screenColor: string;
46
- time: string;
47
- eventId: string;
48
- };
49
- private updateLocationForNextPageView;
50
- private getNextValues;
51
- private getCurrentLocationFromPayload;
52
- }
53
- export {};
@@ -1,31 +0,0 @@
1
- import { BasePlugin, PluginClass, PluginOptions } from './BasePlugin';
2
- export declare const SVCPluginEventTypes: {
3
- pageview: string;
4
- event: string;
5
- };
6
- export declare 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 declare type Ticket = TicketProperties;
18
- export declare class SVCPlugin extends BasePlugin {
19
- static readonly Id = "svc";
20
- private ticket;
21
- constructor({ client, uuidGenerator }: PluginOptions);
22
- protected addHooks(): void;
23
- setTicket(ticket: Ticket): void;
24
- protected clearPluginData(): void;
25
- private addHooksForSVCEvents;
26
- private addHooksForPageView;
27
- private addHooksForEvent;
28
- private addSVCDataToPayload;
29
- private getTicketPayload;
30
- }
31
- export declare const SVC: PluginClass;