Appearance
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
eventType
eventType:
XPEventType
Defined in: types/gamification.types.ts:157
id
id:
string
Defined in: types/common.types.ts:167
Inherited from
metadata?
optionalmetadata: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
userId
userId:
string
Defined in: types/gamification.types.ts:156