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

    Interface CurveOptions

    Query shared by the athlete-level curve routes (power-curves, pace-curves, hr-curves), and the full query for hr-curves. The routes select their window with curves (relative periods or explicit ranges), not with an oldest/newest pair.

    The spec marks the f1, f2 and f3 comparison-filter arrays as required, but the API answers without them, so they are omitted here; see the API behaviour guide.

    interface CurveOptions {
        curves?: string[];
        newest?: string;
        now?: string;
        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.

    newest?: string

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

    now?: string

    Current local date (ISO-8601)

    subMaxEfforts?: number

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

    The sport (Ride, Run etc.) whose activities feed the curves. Required for power curves.