Skip to content

Commit

Permalink
fix: nutrition record types (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
matinzd authored Jan 18, 2024
1 parent 83f6746 commit 7653b17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/records.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -351,6 +352,7 @@ export type HealthConnectRecord =
| HeartRateVariabilityRmssdRecord
| SexualActivityRecord
| WeightRecord
| NutritionRecord
| LeanBodyMassRecord
| IntermenstrualBleedingRecord
| SpeedRecord
Expand Down
1 change: 1 addition & 0 deletions src/types/results.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ interface WeightRecordResult
extends Replace<WeightRecord, 'weight', MassResult> {}

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. */
Expand Down

0 comments on commit 7653b17

Please sign in to comment.