Skip to content

DoCurious API Reference / types / XPEvent

Interface: XPEvent ​

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

A single XP award event, used for activity feeds and recent XP displays.

Extends ​

Properties ​

amount ​

amount: number

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

XP amount awarded (always positive)


createdAt ​

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from ​

BaseEntity.createdAt


eventType ​

eventType: XPEventType

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


id ​

id: string

Defined in: types/common.types.ts:167

Inherited from ​

BaseEntity.id


metadata? ​

optional metadata: Record<string, unknown>

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

Additional context (e.g., { challengeId: 'ch-042' })


updatedAt ​

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from ​

BaseEntity.updatedAt


userId ​

userId: string

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

DoCurious Platform Documentation