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

DataSource

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

Data Source definition to track the origin of data. Each health data point, regardless of the complexity or data model (whether a simple step count or a detailed sleep session) must retain information about its source of origin (e.g. the device or app that collected it).

interface DataSource {
readonly application?: Application;
device?: Device;
readonly platform?:
| "PLATFORM_UNSPECIFIED"
| "FITBIT"
| "HEALTH_CONNECT"
| "HEALTH_KIT"
| "FIT"
| "FITBIT_WEB_API"
| "NEST"
| "GOOGLE_WEB_API"
| "GOOGLE_PARTNER_INTEGRATION";
recordingMethod?:
| "RECORDING_METHOD_UNSPECIFIED"
| "MANUAL"
| "PASSIVELY_MEASURED"
| "DERIVED"
| "ACTIVELY_MEASURED"
| "UNKNOWN";
}

§Properties

§
readonly application?: Application
[src]

Output only. Captures metadata for the application that provided this data.

§
device?: Device
[src]

Optional. Captures metadata for raw data points originating from devices. We expect this data source to be used for data points written on device sync.

§
readonly platform?: "PLATFORM_UNSPECIFIED" | "FITBIT" | "HEALTH_CONNECT" | "HEALTH_KIT" | "FIT" | "FITBIT_WEB_API" | "NEST" | "GOOGLE_WEB_API" | "GOOGLE_PARTNER_INTEGRATION"
[src]

Output only. Captures the platform that uploaded the data.

§
recordingMethod?: "RECORDING_METHOD_UNSPECIFIED" | "MANUAL" | "PASSIVELY_MEASURED" | "DERIVED" | "ACTIVELY_MEASURED" | "UNKNOWN"
[src]

Optional. Captures how the data was recorded.