mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
feat(healthkit): list the accepted sample types on the integration read
GET /api/integrations/healthkit carries acceptedTypes, the quantity and category identifiers the batch route maps today. The list is derived from APPLE_HEALTH_TYPE_MAP alone, so a deferred type is never in it and the client no longer needs a release to follow a mapping change. Refs #1340
This commit is contained in:
1 parent
66533497de
commit
59434cd463
7 files changed
+117
No files matched your search
@@ -83483,6 +83483,15 @@ components:
|
||||
anyOf:
|
||||
- $ref: "#/components/schemas/ConnectionHealth"
|
||||
- type: "null"
|
||||
acceptedTypes:
|
||||
description: The HealthKit quantity and category identifiers `POST /api/measurements/batch` maps today (e.g.
|
||||
`HKQuantityTypeIdentifierBodyMass`, `HKCategoryTypeIdentifierSleepAnalysis`), sorted. Derived from the
|
||||
server's mapping table, so a type the server defers is never listed. A client requests and sends only types
|
||||
in this list and its own table; when the field is absent (an older server) it keeps its own table. Present
|
||||
on the GET read; omitted from the PATCH echo.
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
required:
|
||||
- entries
|
||||
- lastSyncedAt
|
||||
|
||||
Reference in new issue
Block a user