Sports Lib API - v17.3.0
    Preparing search index...

    Class ActivityParsingOptions

    Index

    Constructors

    Properties

    deviceInfoMode: "raw" | "changes"

    Controls how FIT device_info records are exposed on activity.creator.devices.

    Some FIT files emit the same device identity every second with only timestamp changing, which can generate very large payloads.

    • raw: Keep all parsed device_info rows (backwards-compatible default).
    • changes: Keep only state transitions by collapsing contiguous rows that differ by timestamp only.

    summary is intentionally not exposed for now to avoid changing payload semantics beyond run-compaction and to keep this release backwards-safe.

    generateUnitStreams: boolean
    maxActivityDurationDays: number
    streams: {
        fixAbnormal: { speed?: boolean };
        includeTypes?: string[];
        smooth: {
            altitudeSmooth?: boolean;
            grade?: boolean;
            gradeSmooth?: boolean;
        };
    }

    Enable/Disable streams calculations

    tss?: {
        enableHeuristicFallbacks: boolean;
        overrides: ActivityParsingTssOverridesOptions;
        preserveImportedTss: boolean;
    }
    DEFAULT: ActivityParsingOptions = ...