UNPKG

@trophyso/node

Version:
15 lines (14 loc) 544 B
import type * as TrophyApi from "../index"; /** * Points system response for metric events and achievement completions. */ export interface MetricEventPointsResponse extends TrophyApi.PointsResponse { /** The user's total points */ total: number; /** The user's new level, included only when the level changed as a result of this event. */ level?: TrophyApi.PointsLevel; /** The points added by this event. */ added: number; /** Array of trigger awards that added points. */ awards: TrophyApi.PointsAward[]; }