@0x3639/intervals-icu
    Preparing search index...

    Interface PowerCurveOptions

    Query for GET /athlete/{id}/power-curves, which requires type (HTTP 422 without it)

    interface PowerCurveOptions {
        curves?: string[];
        includeRanks?: boolean;
        newest?: string;
        now?: string;
        pmType?: PowerModelType;
        subMaxEfforts?: number;
        type: ActivityType;
    }

    Hierarchy (View Summary)

    Index
    curves?: string[]

    Curves to return (default: the past year). Each entry is one of 1y/2y (past year, past 2 years…), 42d (past 42 days…), s0/s1 (current season, previous season…), all (all time), or r.2023-10-01.2023-10-31 (an explicit date range). An entry may carry a -kj0 or -kj1 suffix to return the matching fatigued curve.

    includeRanks?: boolean

    Include the athlete's ranking for each effort (default false)

    newest?: string

    Newest local date (ISO-8601) the curves are computed back from; defaults to today

    now?: string

    Current local date (ISO-8601)

    Power model to fit: MS_2P, MORTON_3P, FFT_CURVES or ECP

    subMaxEfforts?: number

    Number of sub-maximal efforts to return per duration (integer, default 0)

    The sport (Ride, Run etc.); the API requires it for power curves