From 7653b172f6ecc1181a0fac2b9cb438eaef66ac09 Mon Sep 17 00:00:00 2001 From: Matin Zadeh Dolatabad Date: Thu, 18 Jan 2024 17:41:23 +0100 Subject: [PATCH] fix: nutrition record types (#59) --- src/types/records.types.ts | 2 ++ src/types/results.types.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/types/records.types.ts b/src/types/records.types.ts index d11e18b..f25da9c 100644 --- a/src/types/records.types.ts +++ b/src/types/records.types.ts @@ -167,6 +167,7 @@ export interface WeightRecord extends InstantaneousRecord { } export interface NutritionRecord extends IntervalRecord { + recordType: 'Nutrition'; /** Biotin in [Mass] unit. Optional field. Valid range: 0-100 grams. */ biotin?: Mass; /** Caffeine in [Mass] unit. Optional field. Valid range: 0-100 grams. */ @@ -351,6 +352,7 @@ export type HealthConnectRecord = | HeartRateVariabilityRmssdRecord | SexualActivityRecord | WeightRecord + | NutritionRecord | LeanBodyMassRecord | IntermenstrualBleedingRecord | SpeedRecord diff --git a/src/types/results.types.ts b/src/types/results.types.ts index fe6d19d..08e370d 100644 --- a/src/types/results.types.ts +++ b/src/types/results.types.ts @@ -154,6 +154,7 @@ interface WeightRecordResult extends Replace {} interface NutritionRecordResult extends IntervalRecord { + recordType: 'Nutrition'; /** Biotin in [MassResult] unit. Optional field. Valid range: 0-100 grams. */ biotin?: MassResult; /** Caffeine in [MassResult] unit. Optional field. Valid range: 0-100 grams. */