UNPKG

@trophyso/node

Version:
10 lines (9 loc) 437 B
import type * as TrophyApi from "../index"; export interface GetUserPointsResponse extends TrophyApi.PointsResponse { /** The user's total points */ total: number; /** The user's current level in this points system, or null if no levels are configured or the user hasn't reached any level yet. */ level?: TrophyApi.PointsLevel; /** Array of trigger awards that added points. */ awards: TrophyApi.PointsAward[]; }