UNPKG

@sports-alliance/sports-lib

Version:

A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc

27 lines (26 loc) 1.05 kB
import { CreatorJSONInterface } from '../creators/creator.json.interface'; import { IntensityZonesJSONInterface } from '../intensity-zones/intensity-zones.json.interface'; import { LapJSONInterface } from '../laps/lap.json.interface'; import { DataJSONInterface } from '../data/data.json.interface'; import { StreamJSONInterface } from '../streams/stream'; import { ActivityTypes } from './activity.types'; import { SwimLengthJSONInterface } from '../swim-lengths/swim-length.json.interface'; export interface ActivityJSONInterface { id?: string; name: string | null; startDate: number; endDate: number; type: ActivityTypes; powerMeter: boolean; trainer: boolean; powerCurve?: DataJSONInterface | null; stats: DataJSONInterface; streams: StreamJSONInterface[] | { [key: string]: (number | null)[]; }; laps: LapJSONInterface[]; swimLengths?: SwimLengthJSONInterface[]; creator: CreatorJSONInterface; intensityZones: IntensityZonesJSONInterface[]; events: DataJSONInterface[]; }