@trophyso/node
Version:
NodeJS SDK for the Trophy API
14 lines (13 loc) • 460 B
TypeScript
import type * as TrophyApi from "../index";
export interface MetricResponse {
/** The unique ID of the metric. */
id: string;
/** The unique key of the metric. */
key: string;
/** The name of the metric. */
name: string;
/** The user's current total for the metric. */
current: number;
/** A list of the metric's achievements and the user's progress towards each. */
achievements: TrophyApi.UserAchievementResponse[];
}