UNPKG

garmin-connect

Version:

Makes it simple to interface with Garmin Connect to get or set any data point

55 lines (54 loc) 2.39 kB
import { GCActivityId, GCUserHash, GCWorkoutId } from './types'; export declare const GC_MODERN = "https://connect.garmin.com/modern"; export declare const GARMIN_SSO_ORIGIN = "https://sso.garmin.com"; export declare const GARMIN_SSO: string; export declare const BASE_URL: string; export declare const SIGNIN_URL: string; export declare const LOGIN_URL: string; export declare const ACTIVITY_SERVICE: string; export declare const ACTIVITYLIST_SERVICE: string; export declare const CURRENT_USER_SERVICE: string; export declare const DEVICE_SERVICE: string; export declare const DOWNLOAD_SERVICE: string; export declare const USERPROFILE_SERVICE: string; export declare const WELLNESS_SERVICE: string; export declare const WORKOUT_SERVICE: string; export declare const UPLOAD_SERVICE: string; export declare const USER_SETTINGS: string; export declare enum ExportFileType { tcx = "tcx", gpx = "gpx", kml = "kml", zip = "zip" } export declare enum UploadFileType { tcx = "tcx", gpx = "gpx", fit = "fit" } export declare const activity: (id: GCActivityId) => string; export declare const weather: (id: GCActivityId) => string; export declare const activityDetails: (id: GCActivityId) => string; export declare const activities: () => string; export declare const dailyHeartRate: (userHash: GCUserHash) => string; export declare const dailySleep: () => string; export declare const dailySleepData: (userHash: GCUserHash) => string; export declare const dailySummaryChart: (userHash: GCUserHash) => string; export declare const deviceInfo: (userHash: GCUserHash) => string; export declare const schedule: (id: GCActivityId) => string; export declare const userInfo: () => string; export declare const socialProfile: (userHash: GCUserHash) => string; export declare const userSettings: () => string; export declare const originalFile: (id: GCActivityId) => string; /** * * @param id {string} * @param type "tcx" | "gpx" | "kml" * @return {`${string}/export/${string}/activity/${string}`} */ export declare const exportFile: (id: GCActivityId, type: ExportFileType) => string; export declare const workout: (id?: GCWorkoutId) => string; export declare const workouts: () => string; export declare const socialConnections: (userHash: GCUserHash) => string; export declare const newsFeed: () => string; export declare const upload: (format: UploadFileType) => string;