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

Settings

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

Settings details.

interface Settings {
autoStrideEnabled?: boolean;
distanceUnit?: "DISTANCE_UNIT_UNSPECIFIED" | "DISTANCE_UNIT_MILES" | "DISTANCE_UNIT_KILOMETERS";
glucoseUnit?: "GLUCOSE_UNIT_UNSPECIFIED" | "GLUCOSE_UNIT_MG_DL" | "GLUCOSE_UNIT_MMOL_L";
heightUnit?: "HEIGHT_UNIT_UNSPECIFIED" | "HEIGHT_UNIT_INCHES" | "HEIGHT_UNIT_CENTIMETERS";
languageLocale?: string;
name?: string;
strideLengthRunningType?:
| "STRIDE_LENGTH_TYPE_UNSPECIFIED"
| "STRIDE_LENGTH_TYPE_DEFAULT"
| "STRIDE_LENGTH_TYPE_MANUAL"
| "STRIDE_LENGTH_TYPE_AUTO";
strideLengthWalkingType?:
| "STRIDE_LENGTH_TYPE_UNSPECIFIED"
| "STRIDE_LENGTH_TYPE_DEFAULT"
| "STRIDE_LENGTH_TYPE_MANUAL"
| "STRIDE_LENGTH_TYPE_AUTO";
swimUnit?: "SWIM_UNIT_UNSPECIFIED" | "SWIM_UNIT_METERS" | "SWIM_UNIT_YARDS";
temperatureUnit?: "TEMPERATURE_UNIT_UNSPECIFIED" | "TEMPERATURE_UNIT_CELSIUS" | "TEMPERATURE_UNIT_FAHRENHEIT";
timeZone?: string;
utcOffset?: number;
waterUnit?:
| "WATER_UNIT_UNSPECIFIED"
| "WATER_UNIT_ML"
| "WATER_UNIT_FL_OZ"
| "WATER_UNIT_CUP";
weightUnit?:
| "WEIGHT_UNIT_UNSPECIFIED"
| "WEIGHT_UNIT_POUNDS"
| "WEIGHT_UNIT_STONE"
| "WEIGHT_UNIT_KILOGRAMS";
}

§Properties

§
autoStrideEnabled?: boolean
[src]

Optional. True if the user's stride length is determined automatically. Updates to this field are currently not supported.

§
distanceUnit?: "DISTANCE_UNIT_UNSPECIFIED" | "DISTANCE_UNIT_MILES" | "DISTANCE_UNIT_KILOMETERS"
[src]

Optional. The measurement unit defined in the user's account settings. Updates to this field are currently not supported.

§
glucoseUnit?: "GLUCOSE_UNIT_UNSPECIFIED" | "GLUCOSE_UNIT_MG_DL" | "GLUCOSE_UNIT_MMOL_L"
[src]

Optional. The measurement unit defined in the user's account settings.

§
heightUnit?: "HEIGHT_UNIT_UNSPECIFIED" | "HEIGHT_UNIT_INCHES" | "HEIGHT_UNIT_CENTIMETERS"
[src]

Optional. The measurement unit defined in the user's account settings.

§
languageLocale?: string
[src]

Optional. The locale defined in the user's account settings. Updates to this field are currently not supported.

§
name?: string
[src]

Identifier. The resource name of this Settings resource. Format: users/{user}/settings Example: users/1234567890/settings or users/me/settings The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal me can also be used to refer to the authenticated user.

§
strideLengthRunningType?: "STRIDE_LENGTH_TYPE_UNSPECIFIED" | "STRIDE_LENGTH_TYPE_DEFAULT" | "STRIDE_LENGTH_TYPE_MANUAL" | "STRIDE_LENGTH_TYPE_AUTO"
[src]

Optional. The stride length type defined in the user's account settings for running. Updates to this field are currently not supported.

§
strideLengthWalkingType?: "STRIDE_LENGTH_TYPE_UNSPECIFIED" | "STRIDE_LENGTH_TYPE_DEFAULT" | "STRIDE_LENGTH_TYPE_MANUAL" | "STRIDE_LENGTH_TYPE_AUTO"
[src]

Optional. The stride length type defined in the user's account settings for walking. Updates to this field are currently not supported.

§
swimUnit?: "SWIM_UNIT_UNSPECIFIED" | "SWIM_UNIT_METERS" | "SWIM_UNIT_YARDS"
[src]

Optional. The measurement unit defined in the user's account settings.

§
temperatureUnit?: "TEMPERATURE_UNIT_UNSPECIFIED" | "TEMPERATURE_UNIT_CELSIUS" | "TEMPERATURE_UNIT_FAHRENHEIT"
[src]

Optional. The measurement unit defined in the user's account settings.

§
timeZone?: string
[src]

Optional. The timezone defined in the user's account settings. This follows the IANA Time Zone Database. Updates to this field are currently not supported.

§
utcOffset?: number
[src]

Optional. The duration of the offset from UTC in milliseconds. This offset is the difference between the user's current local time and UTC. Updates to this field are currently not supported.

§
waterUnit?: "WATER_UNIT_UNSPECIFIED" | "WATER_UNIT_ML" | "WATER_UNIT_FL_OZ" | "WATER_UNIT_CUP"
[src]

Optional. The measurement unit defined in the user's account settings.

§
weightUnit?: "WEIGHT_UNIT_UNSPECIFIED" | "WEIGHT_UNIT_POUNDS" | "WEIGHT_UNIT_STONE" | "WEIGHT_UNIT_KILOGRAMS"
[src]

Optional. The measurement unit defined in the user's account settings.