voxa-dashbot
Version:
Integrate Dashbot analytics into your Alexa apps using the voxa framework
35 lines (34 loc) • 996 B
TypeScript
export interface IDashbotEvent {
name: string;
}
export interface IDashbotCustomEvent extends IDashbotEvent {
type: "customEvent";
extraInfo?: any;
}
export interface IDashbotRevenueEvent extends IDashbotEvent {
type: "revenueEvent";
amount: number;
referenceNumber?: string;
metadata?: any;
}
export interface IDashbotPageLaunchEvent extends IDashbotEvent {
type: "pageLaunchEvent";
extraInfo?: any;
}
export interface IDashbotShareEvent extends IDashbotEvent {
type: "shareEvent";
sharedMessage?: any;
}
export interface IDashbotReferralEvent extends IDashbotEvent {
type: "referralEvent";
ref?: string;
source?: string;
ad_id?: string;
referer_uri?: string;
}
export interface IDashbot {
promises: any[];
trackEvent: (event: IDashbotCustomEvent | IDashbotRevenueEvent | IDashbotPageLaunchEvent | IDashbotShareEvent | IDashbotReferralEvent) => Promise<any>;
addInputs: (outgoingInputs: any) => void;
input: any;
}