123456789101112131415161718192021222324252627 |
- export type EventNameEnumType = 'pageview' | '';
- export type Dict<T> = { [key: string]: T };
- export interface GlobalEventType {
- id: string;
- eventName: string;
- eventVariable: string;
- triggerTime: number;
- }
- export type TrackEventType = 'click' | 'menu';
- export interface TrackActionOption extends Dict<any> {
- eventType: string;
- maxWaitTime?: number;
- }
- export type EventReturnType = Promise<XMLHttpRequestResponseType>;
- export interface IBaseAction {
- trackView(url: string, referrer: string, uuid: string): EventReturnType;
- trackEvent(event_name: string, event_data: string, url?: string, uuid?: string): EventReturnType;
- sendEvent(value: string, type: string, url?: string, uuid?: string): EventReturnType;
- }
- export interface ICustomAction {
- track(trackActionName: string, trackActionOption?: TrackActionOption): EventReturnType;
- startTrack(trackActionName: string, trackActionOption?: TrackActionOption): EventReturnType;
- endTrack(trackActionName: string, trackActionOption?: TrackActionOption): EventReturnType;
- }
|