Skip to content

DoCurious API Reference / types / UserGamificationStats

Interface: UserGamificationStats

Defined in: types/gamification.types.ts:233

Comprehensive gamification statistics for a user, including level progress and category breakdown.

Remarks

This is the full stat payload used by the profile page and detailed stats views. For the lighter dashboard summary, see GamificationStats.

Properties

categoryCounts

categoryCounts: Record<UUID, number>

Defined in: types/gamification.types.ts:255

Number of challenges completed per category (keyed by category UUID)


currentLevel

currentLevel: number

Defined in: types/gamification.types.ts:237

Current level number (1-15)


currentStreak

currentStreak: number

Defined in: types/gamification.types.ts:249

Current weekly activity streak length


lastActivityDate?

optional lastActivityDate: string

Defined in: types/gamification.types.ts:252

ISO date of the user's most recent qualifying activity


longestStreak

longestStreak: number

Defined in: types/gamification.types.ts:250


totalBadgesEarned

totalBadgesEarned: number

Defined in: types/gamification.types.ts:246


totalChallengesCompleted

totalChallengesCompleted: number

Defined in: types/gamification.types.ts:243


totalXp

totalXp: number

Defined in: types/gamification.types.ts:235


uniqueChallengesCompleted

uniqueChallengesCompleted: number

Defined in: types/gamification.types.ts:245

Distinct challenges completed (excludes repeat completions)


userId

userId: string

Defined in: types/gamification.types.ts:234


xpProgress

xpProgress: number

Defined in: types/gamification.types.ts:241

Progress percentage within the current level (0-100)


xpToNextLevel

xpToNextLevel: number

Defined in: types/gamification.types.ts:239

XP remaining to reach the next level

DoCurious Platform Documentation