Interface StravaNodeParameters

Source
interface StravaNodeParameters {
    activityId?: string;
    additionalFields?: {
        commute?: boolean;
        description?: string;
        distance?: number;
        trainer?: boolean;
    };
    elapsedTime?: number;
    keys?: (
        | "altitude"
        | "cadence"
        | "distance"
        | "grade_smooth"
        | "heartrate"
        | "latlng"
        | "moving"
        | "temp"
        | "time"
        | "velocity_smooth"
        | "watts"
    )[];
    limit?: number;
    name?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "getComments"
    | "getKudos"
    | "getLaps"
    | "getStreams"
    | "getZones";
    resource?: "activity";
    returnAll?: boolean;
    sport_type?: | "AlpineSki"
    | "BackcountrySki"
    | "Badminton"
    | "Canoeing"
    | "Crossfit"
    | "EBikeRide"
    | "Elliptical"
    | "EMountainBikeRide"
    | "Golf"
    | "GravelRide"
    | "Handcycle"
    | "HighIntensityIntervalTraining"
    | "Hike"
    | "IceSkate"
    | "InlineSkate"
    | "Kayaking"
    | "Kitesurf"
    | "MountainBikeRide"
    | "NordicSki"
    | "Pickleball"
    | "Pilates"
    | "Racquetball"
    | "Ride"
    | "RockClimbing"
    | "RollerSki"
    | "Rowing"
    | "Run"
    | "Sail"
    | "Skateboard"
    | "Snowboard"
    | "Snowshoe"
    | "Soccer"
    | "Squash"
    | "StairStepper"
    | "StandUpPaddling"
    | "Surfing"
    | "Swim"
    | "TableTennis"
    | "Tennis"
    | "TrailRun"
    | "Velomobile"
    | "VirtualRide"
    | "VirtualRow"
    | "VirtualRun"
    | "Walk"
    | "WeightTraining"
    | "Wheelchair"
    | "Windsurf"
    | "Workout"
    | "Yoga";
    startDate?: string;
    type?: string;
    updateFields?: {
        commute?: boolean;
        description?: string;
        gear_id?: string;
        hide_from_home?: boolean;
        name?: string;
        sport_type?: | "AlpineSki"
        | "BackcountrySki"
        | "Badminton"
        | "Canoeing"
        | "Crossfit"
        | "EBikeRide"
        | "Elliptical"
        | "EMountainBikeRide"
        | "Golf"
        | "GravelRide"
        | "Handcycle"
        | "HighIntensityIntervalTraining"
        | "Hike"
        | "IceSkate"
        | "InlineSkate"
        | "Kayaking"
        | "Kitesurf"
        | "MountainBikeRide"
        | "NordicSki"
        | "Pickleball"
        | "Pilates"
        | "Racquetball"
        | "Ride"
        | "RockClimbing"
        | "RollerSki"
        | "Rowing"
        | "Run"
        | "Sail"
        | "Skateboard"
        | "Snowboard"
        | "Snowshoe"
        | "Soccer"
        | "Squash"
        | "StairStepper"
        | "StandUpPaddling"
        | "Surfing"
        | "Swim"
        | "TableTennis"
        | "Tennis"
        | "TrailRun"
        | "Velomobile"
        | "VirtualRide"
        | "VirtualRow"
        | "VirtualRun"
        | "Walk"
        | "WeightTraining"
        | "Wheelchair"
        | "Windsurf"
        | "Workout"
        | "Yoga";
        trainer?: boolean;
        type?: string;
    };
}

Properties§

Source§

readonly activityId?: string

ID or email of activity

Source§

readonly additionalFields?: {
    commute?: boolean;
    description?: string;
    distance?: number;
    trainer?: boolean;
}

Default: {}

Source§

readonly elapsedTime?: number

In seconds Type options: {"minValue":0}

Source§

readonly keys?: (
    | "altitude"
    | "cadence"
    | "distance"
    | "grade_smooth"
    | "heartrate"
    | "latlng"
    | "moving"
    | "temp"
    | "time"
    | "velocity_smooth"
    | "watts"
)[]

Desired stream types to return Default: []

Source§

readonly limit?: number

Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":100}

Source§

readonly name?: string

The name of the activity

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "getComments"
    | "getKudos"
    | "getLaps"
    | "getStreams"
    | "getZones"

Default: "create"

Source§

readonly resource?: "activity"

Default: "activity"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly sport_type?:
    | "AlpineSki"
    | "BackcountrySki"
    | "Badminton"
    | "Canoeing"
    | "Crossfit"
    | "EBikeRide"
    | "Elliptical"
    | "EMountainBikeRide"
    | "Golf"
    | "GravelRide"
    | "Handcycle"
    | "HighIntensityIntervalTraining"
    | "Hike"
    | "IceSkate"
    | "InlineSkate"
    | "Kayaking"
    | "Kitesurf"
    | "MountainBikeRide"
    | "NordicSki"
    | "Pickleball"
    | "Pilates"
    | "Racquetball"
    | "Ride"
    | "RockClimbing"
    | "RollerSki"
    | "Rowing"
    | "Run"
    | "Sail"
    | "Skateboard"
    | "Snowboard"
    | "Snowshoe"
    | "Soccer"
    | "Squash"
    | "StairStepper"
    | "StandUpPaddling"
    | "Surfing"
    | "Swim"
    | "TableTennis"
    | "Tennis"
    | "TrailRun"
    | "Velomobile"
    | "VirtualRide"
    | "VirtualRow"
    | "VirtualRun"
    | "Walk"
    | "WeightTraining"
    | "Wheelchair"
    | "Windsurf"
    | "Workout"
    | "Yoga"

Type of sport Default: "Run"

Source§

readonly startDate?: string

ISO 8601 formatted date time

Source§

readonly type?: string

Type of activity. For example - Run, Ride etc.

Source§

readonly updateFields?: {
    commute?: boolean;
    description?: string;
    gear_id?: string;
    hide_from_home?: boolean;
    name?: string;
    sport_type?:
        | "AlpineSki"
        | "BackcountrySki"
        | "Badminton"
        | "Canoeing"
        | "Crossfit"
        | "EBikeRide"
        | "Elliptical"
        | "EMountainBikeRide"
        | "Golf"
        | "GravelRide"
        | "Handcycle"
        | "HighIntensityIntervalTraining"
        | "Hike"
        | "IceSkate"
        | "InlineSkate"
        | "Kayaking"
        | "Kitesurf"
        | "MountainBikeRide"
        | "NordicSki"
        | "Pickleball"
        | "Pilates"
        | "Racquetball"
        | "Ride"
        | "RockClimbing"
        | "RollerSki"
        | "Rowing"
        | "Run"
        | "Sail"
        | "Skateboard"
        | "Snowboard"
        | "Snowshoe"
        | "Soccer"
        | "Squash"
        | "StairStepper"
        | "StandUpPaddling"
        | "Surfing"
        | "Swim"
        | "TableTennis"
        | "Tennis"
        | "TrailRun"
        | "Velomobile"
        | "VirtualRide"
        | "VirtualRow"
        | "VirtualRun"
        | "Walk"
        | "WeightTraining"
        | "Wheelchair"
        | "Windsurf"
        | "Workout"
        | "Yoga";
    trainer?: boolean;
    type?: string;
}

Default: {}