Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Exercise

import type { Exercise } from "https://googleapis.deno.dev/v1/health:v4.ts";

An exercise that stores information about a physical activity.

interface Exercise {
activeDuration?: number;
readonly createTime?: Date;
displayName?: string;
exerciseEvents?: ExerciseEvent[];
exerciseMetadata?: ExerciseMetadata;
exerciseType?:
| "EXERCISE_TYPE_UNSPECIFIED"
| "RUNNING"
| "WALKING"
| "BIKING"
| "SWIMMING"
| "HIKING"
| "YOGA"
| "PILATES"
| "WORKOUT"
| "HIIT"
| "WEIGHTLIFTING"
| "STRENGTH_TRAINING"
| "OTHER";
metricsSummary?: MetricsSummary;
notes?: string;
splits?: SplitSummary[];
splitSummaries?: SplitSummary[];
readonly updateTime?: Date;
}

§Properties

§
activeDuration?: number
[src]

Optional. Duration excluding pauses.

§
readonly createTime?: Date
[src]

Output only. Represents the timestamp of the creation of the exercise.

§
displayName?: string
[src]

Required. Exercise display name.

§
exerciseEvents?: ExerciseEvent[]
[src]

Optional. Exercise events that happen during an exercise, such as pause & restarts.

§
exerciseMetadata?: ExerciseMetadata
[src]

Optional. Additional exercise metadata.

§
exerciseType?: "EXERCISE_TYPE_UNSPECIFIED" | "RUNNING" | "WALKING" | "BIKING" | "SWIMMING" | "HIKING" | "YOGA" | "PILATES" | "WORKOUT" | "HIIT" | "WEIGHTLIFTING" | "STRENGTH_TRAINING" | "OTHER"
[src]

Required. The type of activity performed during an exercise.

§

Required. Observed exercise interval

§
metricsSummary?: MetricsSummary
[src]

Required. Summary metrics for this exercise ( )

§
notes?: string
[src]

Optional. Standard free-form notes captured at manual logging.

§

Optional. The default split is 1 km or 1 mile. - if the movement distance is less than the default, then there are no splits - if the movement distance is greater than or equal to the default, then we have splits

§
splitSummaries?: SplitSummary[]
[src]

Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.

§
readonly updateTime?: Date
[src]

Output only. This is the timestamp of the last update to the exercise.