0067bee94b
* Add stats updating cloud function * Read stats from database on client instead of computing them * Improve logging for stats updater * Tidying up
24 lines
511 B
TypeScript
24 lines
511 B
TypeScript
export type Stats = {
|
|
startDate: number
|
|
dailyActiveUsers: number[]
|
|
weeklyActiveUsers: number[]
|
|
monthlyActiveUsers: number[]
|
|
dailyBetCounts: number[]
|
|
dailyContractCounts: number[]
|
|
dailyCommentCounts: number[]
|
|
dailySignups: number[]
|
|
weekOnWeekRetention: number[]
|
|
monthlyRetention: number[]
|
|
weeklyActivationRate: number[]
|
|
topTenthActions: {
|
|
daily: number[]
|
|
weekly: number[]
|
|
monthly: number[]
|
|
}
|
|
manaBet: {
|
|
daily: number[]
|
|
weekly: number[]
|
|
monthly: number[]
|
|
}
|
|
}
|