@robotical/appv2-analytics-gatherer
Version:
A tool that gathers data from the Apps and sends it to the Analytics server
20 lines (19 loc) • 1.04 kB
TypeScript
import { RaftTypeE } from '@robotical/webapp-types/dist-types/src/types/raft';
import { AnalyticsDeviceInfo, VisitedActivityType, VisitedScreenEnum } from '../types/types';
declare class AnalyticsFacade {
static sessionId: string;
static deviceId: string;
static raftTypeE: RaftTypeE;
static robotId: string;
static consent: boolean;
static setRobotId(robotId: string): void;
static setRaftType(raftType: RaftTypeE): void;
static setConsent(consent: boolean): Promise<void>;
static setConsentWithoutTracking(consent: boolean): void;
static startSession(sessionId: string, deviceId: string, robotId: string, raftType: RaftTypeE, deviceInfo?: AnalyticsDeviceInfo): Promise<boolean>;
static logScreenVisit(screenName: VisitedScreenEnum): Promise<(() => void) | null>;
static logActivityVisit(activityName: VisitedActivityType): Promise<(() => void) | null>;
static stopAllActivityHeartbeats(): Promise<void>;
static _areNecessaryFieldsSet(): boolean;
}
export default AnalyticsFacade;