export interface OmnitureModule { sendGameAnalyticsEvent: (gameEventData: GameEventData) => Promise; } export interface GameEventData { gameName?: string; campaignId?: string; energyPoints?: number; level?: number; league?: string; badgesCount?: number; friendCount?: number; position?: number; transactions?: string[]; rewards?: string[]; powers?: string[]; deathCount?: number; livesLeft?: number; impressionId?: string; actionType: GameActionType; channel?: string; score?: number; rank?: number; errorInfo?: string; extraData?: Record; } export enum GameActionType { SHARE, NOTIFY, EARN_A_CHANCE, PLAY_NOW, CROSS_CLICKED, GAME_COMPLETE, GAME_START, LEVEL_START, LEVEL_COMPLETE, GAME_ERROR, EARN_A_CHANCE_PRODUCT_CLICK, NOTIFICATION_PREFERENCES_CLICK, INVITE_FRIENDS, HOW_TO_PLAY, ENERGY_INFO, GEMS_TO_COIN_TRANSACTION, UPGRADE, LEADERBOARD, }