@trophyso/node
Version:
NodeJS SDK for the Trophy API
13 lines (12 loc) • 630 B
TypeScript
import type * as TrophyApi from "../index";
/**
* An object representing the user's streak.
*/
export interface StreakResponse extends TrophyApi.BaseStreakResponse {
/** The timestamp the streak was most recently extended. Null if the streak is not active. */
extended?: Date;
/** A list of the user's past streak periods up through the current period. Each period includes the start and end dates and the length of the streak. */
streakHistory: TrophyApi.StreakResponseStreakHistoryItem[];
/** Upcoming and currently active streak pauses for the user. */
pauses: TrophyApi.StreakResponsePausesItem[];
}