@trophyso/node
Version:
NodeJS SDK for the Trophy API
17 lines (16 loc) • 622 B
TypeScript
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as TrophyApi from "..";
export interface EventResponse {
/** The unique ID of the event. */
eventId: string;
/** The unique ID of the metric that was updated. */
metricId: string;
/** The user's new total progress against the metric. */
total: number;
/** Achievements completed as a result of this event. */
achievements?: TrophyApi.AchievementResponse[];
/** The user's current streak for the metric, if the metric has streaks enabled. */
currentStreak?: TrophyApi.IncrementMetricStreakResponse;
}