@ovok/native 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/modules/bt-device/constants/device-model.js +82 -0
- package/lib/commonjs/modules/bt-device/constants/device-model.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +21 -1
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-device/hooks/use-supported-devices.js +16 -0
- package/lib/commonjs/modules/bt-device/hooks/use-supported-devices.js.map +1 -0
- package/lib/commonjs/modules/bt-device/index.js +117 -0
- package/lib/commonjs/modules/bt-device/index.js.map +1 -1
- package/lib/commonjs/modules/bt-device/types/device-kind.js +2 -0
- package/lib/commonjs/modules/bt-device/types/device-kind.js.map +1 -0
- package/lib/commonjs/modules/bt-device/utils/device-query.js +57 -0
- package/lib/commonjs/modules/bt-device/utils/device-query.js.map +1 -0
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +3 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/blood-pressure-translated-exception-map.js +2 -1
- package/lib/commonjs/modules/bt-management/constants/blood-pressure-translated-exception-map.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-feedback.js +25 -0
- package/lib/commonjs/modules/bt-management/constants/measurement-feedback.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bt-device.js +8 -7
- package/lib/commonjs/modules/bt-management/hooks/use-bt-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-bt-devices.js +41 -0
- package/lib/commonjs/modules/bt-management/hooks/use-bt-devices.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-open-series.js +18 -0
- package/lib/commonjs/modules/bt-management/hooks/use-open-series.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-queued-results.js +15 -0
- package/lib/commonjs/modules/bt-management/hooks/use-queued-results.js.map +1 -0
- package/lib/commonjs/modules/bt-management/index.js +60 -0
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js +9 -7
- package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js +45 -3
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js +30 -3
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js +2 -1
- package/lib/commonjs/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +13 -12
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +3 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +4 -3
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +10 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +6 -0
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.device.js +4 -3
- package/lib/commonjs/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.device.js +2 -1
- package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/series-recorder.js +176 -0
- package/lib/commonjs/modules/bt-management/services/series-recorder.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/series-slots.js +93 -0
- package/lib/commonjs/modules/bt-management/services/series-slots.js.map +1 -0
- package/lib/commonjs/modules/bt-management/types/measurement-series.js +6 -0
- package/lib/commonjs/modules/bt-management/types/measurement-series.js.map +1 -0
- package/lib/commonjs/modules/data-sync/constants.js +14 -1
- package/lib/commonjs/modules/data-sync/constants.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js +6 -5
- package/lib/commonjs/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +10 -7
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js +10 -4
- package/lib/commonjs/modules/data-sync/services/managers/storage-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/health-data.js +5 -1
- package/lib/commonjs/modules/data-sync/types/health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +19 -5
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/fhir-systems.js +4 -1
- package/lib/commonjs/modules/data-sync/utils/fhir-systems.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js +10 -5
- package/lib/commonjs/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js +18 -12
- package/lib/commonjs/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-latest-valid-start-date.js +6 -1
- package/lib/commonjs/modules/data-sync/utils/get-latest-valid-start-date.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js +4 -0
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js +3 -2
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-connect-series.js +101 -0
- package/lib/commonjs/modules/data-sync/utils/health-connect-series.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +44 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/hourly-series.js +57 -0
- package/lib/commonjs/modules/data-sync/utils/hourly-series.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/replaces-saved-observation.js +13 -0
- package/lib/commonjs/modules/data-sync/utils/replaces-saved-observation.js.map +1 -0
- package/lib/module/modules/bt-device/constants/device-model.js +74 -0
- package/lib/module/modules/bt-device/constants/device-model.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-devices.js +21 -1
- package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/module/modules/bt-device/hooks/use-supported-devices.js +12 -0
- package/lib/module/modules/bt-device/hooks/use-supported-devices.js.map +1 -0
- package/lib/module/modules/bt-device/index.js +4 -0
- package/lib/module/modules/bt-device/index.js.map +1 -1
- package/lib/module/modules/bt-device/types/device-kind.js +2 -0
- package/lib/module/modules/bt-device/types/device-kind.js.map +1 -0
- package/lib/module/modules/bt-device/utils/device-query.js +50 -0
- package/lib/module/modules/bt-device/utils/device-query.js.map +1 -0
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +3 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/constants/blood-pressure-translated-exception-map.js +2 -1
- package/lib/module/modules/bt-management/constants/blood-pressure-translated-exception-map.js.map +1 -1
- package/lib/module/modules/bt-management/constants/measurement-feedback.js +22 -0
- package/lib/module/modules/bt-management/constants/measurement-feedback.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-bt-device.js +9 -8
- package/lib/module/modules/bt-management/hooks/use-bt-device.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-bt-devices.js +37 -0
- package/lib/module/modules/bt-management/hooks/use-bt-devices.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-open-series.js +13 -0
- package/lib/module/modules/bt-management/hooks/use-open-series.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-queued-results.js +10 -0
- package/lib/module/modules/bt-management/hooks/use-queued-results.js.map +1 -0
- package/lib/module/modules/bt-management/index.js +5 -0
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js +9 -7
- package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js +46 -3
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/module/modules/bt-management/services/bt-manager.js +30 -3
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js +2 -1
- package/lib/module/modules/bt-management/services/devices/bc01/bc01.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +13 -12
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +3 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +4 -3
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +10 -1
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +6 -0
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/f4/f4.device.js +4 -3
- package/lib/module/modules/bt-management/services/devices/f4/f4.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/spo/spo2.device.js +2 -1
- package/lib/module/modules/bt-management/services/devices/spo/spo2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/series-recorder.js +173 -0
- package/lib/module/modules/bt-management/services/series-recorder.js.map +1 -0
- package/lib/module/modules/bt-management/services/series-slots.js +85 -0
- package/lib/module/modules/bt-management/services/series-slots.js.map +1 -0
- package/lib/module/modules/bt-management/types/measurement-series.js +4 -0
- package/lib/module/modules/bt-management/types/measurement-series.js.map +1 -0
- package/lib/module/modules/data-sync/constants.js +14 -1
- package/lib/module/modules/data-sync/constants.js.map +1 -1
- package/lib/module/modules/data-sync/services/base-health-sync-service.js +6 -5
- package/lib/module/modules/data-sync/services/base-health-sync-service.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/data-processor.js +11 -8
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/storage-manager.js +10 -4
- package/lib/module/modules/data-sync/services/managers/storage-manager.js.map +1 -1
- package/lib/module/modules/data-sync/types/health-data.js +6 -1
- package/lib/module/modules/data-sync/types/health-data.js.map +1 -1
- package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +19 -6
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/fhir-systems.js +4 -1
- package/lib/module/modules/data-sync/utils/fhir-systems.js.map +1 -1
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js +10 -5
- package/lib/module/modules/data-sync/utils/generate-observation-entry.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js +16 -11
- package/lib/module/modules/data-sync/utils/get-health-record-sync-id.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-latest-valid-start-date.js +7 -2
- package/lib/module/modules/data-sync/utils/get-latest-valid-start-date.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js +4 -0
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js +3 -2
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-connect-series.js +97 -0
- package/lib/module/modules/data-sync/utils/health-connect-series.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-series.js +40 -0
- package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -0
- package/lib/module/modules/data-sync/utils/hourly-series.js +52 -0
- package/lib/module/modules/data-sync/utils/hourly-series.js.map +1 -0
- package/lib/module/modules/data-sync/utils/replaces-saved-observation.js +8 -0
- package/lib/module/modules/data-sync/utils/replaces-saved-observation.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts +32 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-model.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +18 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/hooks/use-supported-devices.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-device/hooks/use-supported-devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/types/device-kind.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-device/types/device-kind.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts +49 -0
- package/lib/typescript/commonjs/src/modules/bt-device/utils/device-query.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/blood-pressure-translated-exception-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-feedback.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-feedback.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-device.d.ts +5 -4
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-devices.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-bt-devices.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-open-series.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-open-series.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-queued-results.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-queued-results.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts +17 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/spo2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts +56 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts +36 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-slots.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts +26 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/measurement-series.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts +11 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-data.d.ts +15 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/fhir-systems.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/fhir-systems.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/generate-observation-entry.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +9 -6
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-latest-valid-start-date.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/replaces-saved-observation.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/replaces-saved-observation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts +32 -0
- package/lib/typescript/module/src/modules/bt-device/constants/device-model.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +18 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/hooks/use-supported-devices.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-device/hooks/use-supported-devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/index.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/types/device-kind.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-device/types/device-kind.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts +49 -0
- package/lib/typescript/module/src/modules/bt-device/utils/device-query.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/blood-pressure-translated-exception-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-feedback.d.ts +21 -0
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-feedback.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-device.d.ts +5 -4
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-devices.d.ts +24 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-bt-devices.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-open-series.d.ts +12 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-open-series.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-queued-results.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-queued-results.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts +7 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts +17 -3
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/f4/f4.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts +56 -0
- package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts +36 -0
- package/lib/typescript/module/src/modules/bt-management/services/series-slots.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts +26 -0
- package/lib/typescript/module/src/modules/bt-management/types/measurement-series.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/types/result-callback.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts +6 -1
- package/lib/typescript/module/src/modules/bt-management/types/result-policy.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts +11 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/base-health-sync-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts +3 -2
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts +2 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/storage-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-data.d.ts +15 -2
- package/lib/typescript/module/src/modules/data-sync/types/health-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +5 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/fhir-systems.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/utils/fhir-systems.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/generate-observation-entry.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/utils/generate-observation-entry.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts +9 -6
- package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-latest-valid-start-date.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +5 -2
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts +9 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-connect-series.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +12 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts +22 -0
- package/lib/typescript/module/src/modules/data-sync/utils/hourly-series.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/replaces-saved-observation.d.ts +7 -0
- package/lib/typescript/module/src/modules/data-sync/utils/replaces-saved-observation.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type AggregatedHealthData = {
|
|
2
2
|
kind: "daily-total" | "daily-summary";
|
|
3
3
|
typeIdentifier: string;
|
|
4
4
|
startDate: Date | string;
|
|
@@ -10,5 +10,18 @@ export type AggregatedHealthData = {
|
|
|
10
10
|
maximum?: number;
|
|
11
11
|
sourceApp?: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
declare const isAggregatedHealthData: (value: unknown) => value is AggregatedHealthData;
|
|
14
|
+
/** One finished hour of a quantity in `series` mode: a value a minute, `null` for a minute without one. */
|
|
15
|
+
type SeriesHealthData = {
|
|
16
|
+
kind: "series";
|
|
17
|
+
typeIdentifier: string;
|
|
18
|
+
startDate: Date | string;
|
|
19
|
+
endDate: Date | string;
|
|
20
|
+
unit: string;
|
|
21
|
+
periodMs: number;
|
|
22
|
+
values: Array<number | null>;
|
|
23
|
+
};
|
|
24
|
+
declare const isSeriesHealthData: (value: unknown) => value is SeriesHealthData;
|
|
25
|
+
export { isAggregatedHealthData, isSeriesHealthData };
|
|
26
|
+
export type { AggregatedHealthData, SeriesHealthData };
|
|
14
27
|
//# sourceMappingURL=health-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-data.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-data.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,aAAa,GAAG,eAAe,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAC1B,OAAO,OAAO,KACb,KAAK,IAAI,oBAMX,CAAC;AAEF,2GAA2G;AAC3G,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,gBACe,CAAC;AAEtE,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -15,7 +15,9 @@ declare enum HealthDataType {
|
|
|
15
15
|
workout = "workout"
|
|
16
16
|
}
|
|
17
17
|
type HealthSyncKey = HealthSyncKeys | HealthDataType;
|
|
18
|
-
type HealthDataMode = "point" | "daily-total" | "daily-summary" | "session"
|
|
18
|
+
type HealthDataMode = "point" | "daily-total" | "daily-summary" | "session"
|
|
19
|
+
/** One observation per finished hour holding a value a minute, as sampled data: for heart rate, SpO₂ and the like. */
|
|
20
|
+
| "series";
|
|
19
21
|
declare const getHealthDataMode: (key: HealthSyncKey, configuredMode?: HealthDataMode) => HealthDataMode;
|
|
20
22
|
export { HealthDataType, getHealthDataMode, type HealthDataMode, type HealthSyncKey, type HealthSyncKeys, };
|
|
21
23
|
//# sourceMappingURL=health-sync-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-sync-keys.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-sync-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,KAAK,cAAc,GAAG,OAAO,CAC3B,kBAAkB,EAClB,kBAAkB,CAAC,WAAW,GAAG,kBAAkB,CAAC,oBAAoB,CACzE,CAAC;AAEF,yEAAyE;AACzE,aAAK,cAAc;IACjB,MAAM,WAAW;IACjB,iBAAiB,wBAAwB;IACzC,aAAa,oBAAoB;IACjC,YAAY,mBAAmB;IAC/B,QAAQ,aAAa;IACrB,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;IACpC,gBAAgB,uBAAuB;IACvC,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,KAAK,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAErD,KAAK,cAAc,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"health-sync-keys.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-sync-keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,KAAK,cAAc,GAAG,OAAO,CAC3B,kBAAkB,EAClB,kBAAkB,CAAC,WAAW,GAAG,kBAAkB,CAAC,oBAAoB,CACzE,CAAC;AAEF,yEAAyE;AACzE,aAAK,cAAc;IACjB,MAAM,WAAW;IACjB,iBAAiB,wBAAwB;IACzC,aAAa,oBAAoB;IACjC,YAAY,mBAAmB;IAC/B,QAAQ,aAAa;IACrB,YAAY,kBAAkB;IAC9B,cAAc,oBAAoB;IAClC,eAAe,qBAAqB;IACpC,gBAAgB,uBAAuB;IACvC,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,KAAK,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;AAErD,KAAK,cAAc,GACf,OAAO,GACP,aAAa,GACb,eAAe,GACf,SAAS;AAEX,sHAAsH;GACpH,QAAQ,CAAC;AAEb,QAAA,MAAM,iBAAiB,GACrB,KAAK,aAAa,EAClB,iBAAiB,cAAc,KAC9B,cAqBF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,CAAC"}
|
|
@@ -5,6 +5,10 @@ type GenericHealthDataProps = ConvertDataProps<unknown> & {
|
|
|
5
5
|
mode: HealthDataMode;
|
|
6
6
|
};
|
|
7
7
|
declare const convertGenericHealthDataToObservation: ({ data, patientId, mode, typeIdentifier: configuredTypeIdentifier, typeIdentifierCodes, typeIdentifierCodeSystems, typeIdentifierCodeDisplays, }: GenericHealthDataProps) => Promise<Observation[]>;
|
|
8
|
+
declare const extractValue: (raw: Record<string, unknown>) => {
|
|
9
|
+
value: number;
|
|
10
|
+
unit: string;
|
|
11
|
+
} | undefined;
|
|
8
12
|
declare const getUcumCode: (unit: string, typeIdentifier?: string) => string | undefined;
|
|
9
|
-
export { convertGenericHealthDataToObservation, getUcumCode };
|
|
13
|
+
export { convertGenericHealthDataToObservation, extractValue, getUcumCode };
|
|
10
14
|
//# sourceMappingURL=convert-generic-health-data.d.ts.map
|
package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAQF,QAAA,MAAM,qCAAqC,GAAU,kJAQlD,sBAAsB,KAAG,OAAO,CAAC,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAK3D,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAQF,QAAA,MAAM,qCAAqC,GAAU,kJAQlD,sBAAsB,KAAG,OAAO,CAAC,WAAW,EAAE,CA8GhD,CAAC;AA6FF,QAAA,MAAM,YAAY,GAChB,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,SAwDpC,CAAC;AAqIF,QAAA,MAAM,WAAW,GACf,MAAM,MAAM,EACZ,iBAAiB,MAAM,KACtB,MAAM,GAAG,SAiDX,CAAC;AA6DF,OAAO,EAAE,qCAAqC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -2,5 +2,7 @@ declare const LOINC_SYSTEM = "http://loinc.org";
|
|
|
2
2
|
declare const UCUM_SYSTEM = "http://unitsofmeasure.org";
|
|
3
3
|
declare const OBSERVATION_SYNC_PROVIDER_SYSTEM = "https://api.ovok.com/fhir/StructureDefinition/observation-sync-provider";
|
|
4
4
|
declare const OBSERVATION_SYNC_ID_SYSTEM = "https://api.ovok.com/fhir/StructureDefinition/observation-sync-id";
|
|
5
|
-
|
|
5
|
+
/** The source record an imported observation came from, which is all a deletion reports. */
|
|
6
|
+
declare const OBSERVATION_SYNC_RECORD_SYSTEM = "https://api.ovok.com/fhir/StructureDefinition/observation-sync-record";
|
|
7
|
+
export { LOINC_SYSTEM, OBSERVATION_SYNC_ID_SYSTEM, OBSERVATION_SYNC_PROVIDER_SYSTEM, OBSERVATION_SYNC_RECORD_SYSTEM, UCUM_SYSTEM, };
|
|
6
8
|
//# sourceMappingURL=fhir-systems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fhir-systems.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/fhir-systems.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,qBAAqB,CAAC;AACxC,QAAA,MAAM,WAAW,8BAA8B,CAAC;AAEhD,QAAA,MAAM,gCAAgC,4EACqC,CAAC;AAE5E,QAAA,MAAM,0BAA0B,sEACqC,CAAC;AAEtE,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,gCAAgC,EAChC,WAAW,GACZ,CAAC"}
|
|
1
|
+
{"version":3,"file":"fhir-systems.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/fhir-systems.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,qBAAqB,CAAC;AACxC,QAAA,MAAM,WAAW,8BAA8B,CAAC;AAEhD,QAAA,MAAM,gCAAgC,4EACqC,CAAC;AAE5E,QAAA,MAAM,0BAA0B,sEACqC,CAAC;AAEtE,4FAA4F;AAC5F,QAAA,MAAM,8BAA8B,0EACqC,CAAC;AAE1E,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,gCAAgC,EAChC,8BAA8B,EAC9B,WAAW,GACZ,CAAC"}
|
|
@@ -5,6 +5,8 @@ type GenerateObservationEntryProps = {
|
|
|
5
5
|
groupedObservationBodies: Observation[][];
|
|
6
6
|
provider: HealthProvider;
|
|
7
7
|
groupedObservationSyncIds?: Array<string | undefined>;
|
|
8
|
+
/** Each group's source record, which a deletion of that record finds it by. */
|
|
9
|
+
groupedRecordIds?: Array<string | undefined>;
|
|
8
10
|
patientId?: string;
|
|
9
11
|
mode?: HealthDataMode;
|
|
10
12
|
};
|
|
@@ -14,6 +16,6 @@ declare const getStableObservationId: ({ observation, provider, sourceId, bodyIn
|
|
|
14
16
|
sourceId?: string;
|
|
15
17
|
bodyIndex: number;
|
|
16
18
|
}) => string;
|
|
17
|
-
declare const generateObservationEntry: ({ groupedObservationBodies, provider, groupedObservationSyncIds, patientId, mode, }: GenerateObservationEntryProps) => BundleEntry<Observation>[];
|
|
19
|
+
declare const generateObservationEntry: ({ groupedObservationBodies, provider, groupedObservationSyncIds, groupedRecordIds, patientId, mode, }: GenerateObservationEntryProps) => BundleEntry<Observation>[];
|
|
18
20
|
export { generateObservationEntry, getStableObservationId };
|
|
19
21
|
//# sourceMappingURL=generate-observation-entry.d.ts.map
|
package/lib/typescript/module/src/modules/data-sync/utils/generate-observation-entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-observation-entry.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/generate-observation-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"generate-observation-entry.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/generate-observation-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO3D,KAAK,6BAA6B,GAAG;IACnC,wBAAwB,EAAE,WAAW,EAAE,EAAE,CAAC;IAC1C,QAAQ,EAAE,cAAc,CAAC;IACzB,yBAAyB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAEtD,+EAA+E;IAC/E,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AAiBF,QAAA,MAAM,sBAAsB,GAAI,iDAK7B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,KAAG,MAQa,CAAC;AA6BlB,QAAA,MAAM,wBAAwB,GAAI,uGAO/B,6BAA6B,KAAG,WAAW,CAAC,WAAW,CAAC,EA6F1D,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { Identifier } from "@medplum/fhirtypes";
|
|
2
|
+
import { HealthProvider } from "../types/health-provider";
|
|
3
|
+
/** The record's own id: `uuid` in Apple Health, `metadata.id` in Health Connect. */
|
|
4
|
+
declare const getHealthRecordSourceId: (record: unknown) => string | undefined;
|
|
1
5
|
/**
|
|
2
6
|
* Builds an import identity from the source record's type and interval.
|
|
3
7
|
* Values are deliberately excluded so an updated daily total replaces the
|
|
@@ -5,11 +9,10 @@
|
|
|
5
9
|
*/
|
|
6
10
|
declare const getHealthRecordSyncId: (record: unknown, measurementTypeKey: string) => string | undefined;
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* have no discriminator on the sample object.
|
|
12
|
+
* The identifier of every observation imported from a source record. A deletion
|
|
13
|
+
* reports only the record's id, so the import marks its observations with this
|
|
14
|
+
* and the deletion looks them up by it.
|
|
12
15
|
*/
|
|
13
|
-
declare const
|
|
14
|
-
export {
|
|
16
|
+
declare const getHealthRecordIdentifier: (provider: HealthProvider, recordId: string) => Identifier;
|
|
17
|
+
export { getHealthRecordIdentifier, getHealthRecordSourceId, getHealthRecordSyncId, };
|
|
15
18
|
//# sourceMappingURL=get-health-record-sync-id.d.ts.map
|
package/lib/typescript/module/src/modules/data-sync/utils/get-health-record-sync-id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-health-record-sync-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-health-record-sync-id.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-health-record-sync-id.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-health-record-sync-id.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA4B1D,oFAAoF;AACpF,QAAA,MAAM,uBAAuB,GAAI,QAAQ,OAAO,KAAG,MAAM,GAAG,SAI3D,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,qBAAqB,GACzB,QAAQ,OAAO,EACf,oBAAoB,MAAM,KACzB,MAAM,GAAG,SA+BX,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,yBAAyB,GAC7B,UAAU,cAAc,EACxB,UAAU,MAAM,KACf,UAGD,CAAC;AAEH,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,GACtB,CAAC"}
|
package/lib/typescript/module/src/modules/data-sync/utils/get-latest-valid-start-date.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-latest-valid-start-date.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-latest-valid-start-date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-latest-valid-start-date.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-latest-valid-start-date.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1E,KAAK,4BAA4B,GAAG;IAClC,sBAAsB,EAAE;QACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,EAAE,CAAC;IACJ,IAAI,EACA,oBAAoB,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,GACjD,sBAAsB,CAAC,YAAY,CAAC,CAAC,aAAa,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,CAAC;AACF,eAAO,MAAM,uBAAuB,GAAI,yCAIrC,4BAA4B,qBAqC9B,CAAC"}
|
package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RecordResult, RecordType } from "react-native-health-connect";
|
|
2
2
|
import { DataFromProviderResult } from "../types/data-from-provider-result";
|
|
3
3
|
import { GetDataFromProviderProps } from "../types/get-data-from-provider-props";
|
|
4
|
-
import { AggregatedHealthData } from "../types/health-data";
|
|
5
|
-
type HealthConnectData = RecordResult<RecordType> | AggregatedHealthData;
|
|
4
|
+
import { AggregatedHealthData, SeriesHealthData } from "../types/health-data";
|
|
5
|
+
type HealthConnectData = RecordResult<RecordType> | AggregatedHealthData | SeriesHealthData;
|
|
6
6
|
export declare const getRecordsFromHealthConnect: ({ typeIdentifier, startDate: _startDate, chunkSize, anchor, mode, }: GetDataFromProviderProps<RecordType>) => Promise<DataFromProviderResult<HealthConnectData, RecordType>>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=get-records-from-health-connect.d.ts.map
|
package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-records-from-health-connect.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-records-from-health-connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,YAAY,EACZ,UAAU,EACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-records-from-health-connect.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-records-from-health-connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAKL,YAAY,EACZ,UAAU,EACX,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAO9E,KAAK,iBAAiB,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;AAK5F,eAAO,MAAM,2BAA2B,GAAU,qEAM/C,wBAAwB,CAAC,UAAU,CAAC,KAAG,OAAO,CAC/C,sBAAsB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CA8EtD,CAAC"}
|
|
@@ -3,6 +3,9 @@ import { AppleHealthDataTypeIdentifier } from "../types/apple-health-sync-props"
|
|
|
3
3
|
import { GetDataFromProviderProps } from "../types/get-data-from-provider-props";
|
|
4
4
|
import { AggregatedHealthData } from "../types/health-data";
|
|
5
5
|
declare const getSamplesFromHealth: ({ startDate: _startDate, typeIdentifier, anchor, chunkSize, mode, }: GetDataFromProviderProps<AppleHealthDataTypeIdentifier>) => Promise<{
|
|
6
|
+
data: import("../types/health-data").SeriesHealthData[];
|
|
7
|
+
anchor: undefined;
|
|
8
|
+
} | {
|
|
6
9
|
data: AggregatedHealthData[];
|
|
7
10
|
anchor: undefined;
|
|
8
11
|
} | {
|
|
@@ -53,14 +56,14 @@ declare const getSamplesFromHealth: ({ startDate: _startDate, typeIdentifier, an
|
|
|
53
56
|
anchor: string;
|
|
54
57
|
} | undefined;
|
|
55
58
|
deletedRecordIds: string[];
|
|
56
|
-
data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "
|
|
59
|
+
data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "cal" | "g" | "kcal" | "kg" | "km" | "m" | "mg" | "mg/dL" | "min" | "ms" | "s" | "count" | "count/min" | "degC" | "mmHg" | import("@kingstinct/react-native-healthkit").BloodGlucoseUnit | "ps" | "ns" | "mcs" | "cs" | "ds" | "das" | "hs" | "ks" | "Ms" | "Gs" | "Ts" | "fs" | import("@kingstinct/react-native-healthkit").UnitOfTime | "J" | "pJ" | "nJ" | "mcJ" | "mJ" | "cJ" | "dJ" | "daJ" | "hJ" | "kJ" | "MJ" | "GJ" | "TJ" | "fJ" | UnitOfEnergy | "pm" | "nm" | "mcm" | "mm" | "cm" | "dm" | "dam" | "hm" | "Mm" | "Gm" | "Tm" | "fm" | import("@kingstinct/react-native-healthkit").UnitOfLength | import("@kingstinct/react-native-healthkit").HKUnits | import("@kingstinct/react-native-healthkit").TemperatureUnit | "km/ms" | "km/s" | "km/ps" | "km/ns" | "km/mcs" | "km/cs" | "km/ds" | "km/das" | "km/hs" | "km/ks" | "km/Ms" | "km/Gs" | "km/Ts" | "km/fs" | "km/d" | "km/min" | "km/hr" | "m/ms" | "m/s" | "m/ps" | "m/ns" | "m/mcs" | "m/cs" | "m/ds" | "m/das" | "m/hs" | "m/ks" | "m/Ms" | "m/Gs" | "m/Ts" | "m/fs" | "m/d" | "m/min" | "m/hr" | "pm/ms" | "pm/s" | "pm/ps" | "pm/ns" | "pm/mcs" | "pm/cs" | "pm/ds" | "pm/das" | "pm/hs" | "pm/ks" | "pm/Ms" | "pm/Gs" | "pm/Ts" | "pm/fs" | "pm/d" | "pm/min" | "pm/hr" | "nm/ms" | "nm/s" | "nm/ps" | "nm/ns" | "nm/mcs" | "nm/cs" | "nm/ds" | "nm/das" | "nm/hs" | "nm/ks" | "nm/Ms" | "nm/Gs" | "nm/Ts" | "nm/fs" | "nm/d" | "nm/min" | "nm/hr" | "mcm/ms" | "mcm/s" | "mcm/ps" | "mcm/ns" | "mcm/mcs" | "mcm/cs" | "mcm/ds" | "mcm/das" | "mcm/hs" | "mcm/ks" | "mcm/Ms" | "mcm/Gs" | "mcm/Ts" | "mcm/fs" | "mcm/d" | "mcm/min" | "mcm/hr" | "mm/ms" | "mm/s" | "mm/ps" | "mm/ns" | "mm/mcs" | "mm/cs" | "mm/ds" | "mm/das" | "mm/hs" | "mm/ks" | "mm/Ms" | "mm/Gs" | "mm/Ts" | "mm/fs" | "mm/d" | "mm/min" | "mm/hr" | "cm/ms" | "cm/s" | "cm/ps" | "cm/ns" | "cm/mcs" | "cm/cs" | "cm/ds" | "cm/das" | "cm/hs" | "cm/ks" | "cm/Ms" | "cm/Gs" | "cm/Ts" | "cm/fs" | "cm/d" | "cm/min" | "cm/hr" | "dm/ms" | "dm/s" | "dm/ps" | "dm/ns" | "dm/mcs" | "dm/cs" | "dm/ds" | "dm/das" | "dm/hs" | "dm/ks" | "dm/Ms" | "dm/Gs" | "dm/Ts" | "dm/fs" | "dm/d" | "dm/min" | "dm/hr" | "dam/ms" | "dam/s" | "dam/ps" | "dam/ns" | "dam/mcs" | "dam/cs" | "dam/ds" | "dam/das" | "dam/hs" | "dam/ks" | "dam/Ms" | "dam/Gs" | "dam/Ts" | "dam/fs" | "dam/d" | "dam/min" | "dam/hr" | "hm/ms" | "hm/s" | "hm/ps" | "hm/ns" | "hm/mcs" | "hm/cs" | "hm/ds" | "hm/das" | "hm/hs" | "hm/ks" | "hm/Ms" | "hm/Gs" | "hm/Ts" | "hm/fs" | "hm/d" | "hm/min" | "hm/hr" | "Mm/ms" | "Mm/s" | "Mm/ps" | "Mm/ns" | "Mm/mcs" | "Mm/cs" | "Mm/ds" | "Mm/das" | "Mm/hs" | "Mm/ks" | "Mm/Ms" | "Mm/Gs" | "Mm/Ts" | "Mm/fs" | "Mm/d" | "Mm/min" | "Mm/hr" | "Gm/ms" | "Gm/s" | "Gm/ps" | "Gm/ns" | "Gm/mcs" | "Gm/cs" | "Gm/ds" | "Gm/das" | "Gm/hs" | "Gm/ks" | "Gm/Ms" | "Gm/Gs" | "Gm/Ts" | "Gm/fs" | "Gm/d" | "Gm/min" | "Gm/hr" | "Tm/ms" | "Tm/s" | "Tm/ps" | "Tm/ns" | "Tm/mcs" | "Tm/cs" | "Tm/ds" | "Tm/das" | "Tm/hs" | "Tm/ks" | "Tm/Ms" | "Tm/Gs" | "Tm/Ts" | "Tm/fs" | "Tm/d" | "Tm/min" | "Tm/hr" | "fm/ms" | "fm/s" | "fm/ps" | "fm/ns" | "fm/mcs" | "fm/cs" | "fm/ds" | "fm/das" | "fm/hs" | "fm/ks" | "fm/Ms" | "fm/Gs" | "fm/Ts" | "fm/fs" | "fm/d" | "fm/min" | "fm/hr" | "ft/ms" | "ft/s" | "ft/ps" | "ft/ns" | "ft/mcs" | "ft/cs" | "ft/ds" | "ft/das" | "ft/hs" | "ft/ks" | "ft/Ms" | "ft/Gs" | "ft/Ts" | "ft/fs" | "ft/d" | "ft/min" | "ft/hr" | "in/ms" | "in/s" | "in/ps" | "in/ns" | "in/mcs" | "in/cs" | "in/ds" | "in/das" | "in/hs" | "in/ks" | "in/Ms" | "in/Gs" | "in/Ts" | "in/fs" | "in/d" | "in/min" | "in/hr" | "yd/ms" | "yd/s" | "yd/ps" | "yd/ns" | "yd/mcs" | "yd/cs" | "yd/ds" | "yd/das" | "yd/hs" | "yd/ks" | "yd/Ms" | "yd/Gs" | "yd/Ts" | "yd/fs" | "yd/d" | "yd/min" | "yd/hr" | "mi/ms" | "mi/s" | "mi/ps" | "mi/ns" | "mi/mcs" | "mi/cs" | "mi/ds" | "mi/das" | "mi/hs" | "mi/ks" | "mi/Ms" | "mi/Gs" | "mi/Ts" | "mi/fs" | "mi/d" | "mi/min" | "mi/hr" | "pg" | "ng" | "mcg" | "cg" | "dg" | "dag" | "hg" | "Mg" | "Gg" | "Tg" | "fg" | import("@kingstinct/react-native-healthkit").UnitOfMass | "l" | "pl" | "nl" | "mcl" | "ml" | "cl" | "dl" | "dal" | "hl" | "kl" | "Ml" | "Gl" | "Tl" | "fl" | import("@kingstinct/react-native-healthkit").UnitOfVolume | "IU" | "count/ms" | "count/s" | "count/ps" | "count/ns" | "count/mcs" | "count/cs" | "count/ds" | "count/das" | "count/hs" | "count/ks" | "count/Ms" | "count/Gs" | "count/Ts" | "count/fs" | "count/d" | "count/hr" | "Hz" | "pHz" | "nHz" | "mcHz" | "mHz" | "cHz" | "dHz" | "daHz" | "hHz" | "kHz" | "MHz" | "GHz" | "THz" | "fHz" | "Pa" | "pPa" | "nPa" | "mcPa" | "mPa" | "cPa" | "dPa" | "daPa" | "hPa" | "kPa" | "MPa" | "GPa" | "TPa" | "fPa" | import("@kingstinct/react-native-healthkit").UnitOfPressure | "mmol<180.15588000005408>/l" | "Cal" | "dBHL" | "dBASPL" | "appleEffortScore" | "ft" | "in" | "yd" | "mi" | "oz" | "st" | "lb" | "atm" | "cmAq" | "inHg" | "degF" | "K" | "d" | "hr" | "cup_imp" | "fl_oz_imp" | "pt_imp" | "cup_us" | "fl_oz_us" | "pt_us">[];
|
|
57
60
|
} | {
|
|
58
61
|
anchor: {
|
|
59
62
|
typeIdentifier: AppleHealthDataTypeIdentifier;
|
|
60
63
|
anchor: string;
|
|
61
64
|
} | undefined;
|
|
62
65
|
deletedRecordIds?: undefined;
|
|
63
|
-
data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "
|
|
66
|
+
data: import("@kingstinct/react-native-healthkit").HKQuantitySample<HKQuantityTypeIdentifier, "%" | "cal" | "g" | "kcal" | "kg" | "km" | "m" | "mg" | "mg/dL" | "min" | "ms" | "s" | "count" | "count/min" | "degC" | "mmHg" | import("@kingstinct/react-native-healthkit").BloodGlucoseUnit | "ps" | "ns" | "mcs" | "cs" | "ds" | "das" | "hs" | "ks" | "Ms" | "Gs" | "Ts" | "fs" | import("@kingstinct/react-native-healthkit").UnitOfTime | "J" | "pJ" | "nJ" | "mcJ" | "mJ" | "cJ" | "dJ" | "daJ" | "hJ" | "kJ" | "MJ" | "GJ" | "TJ" | "fJ" | UnitOfEnergy | "pm" | "nm" | "mcm" | "mm" | "cm" | "dm" | "dam" | "hm" | "Mm" | "Gm" | "Tm" | "fm" | import("@kingstinct/react-native-healthkit").UnitOfLength | import("@kingstinct/react-native-healthkit").HKUnits | import("@kingstinct/react-native-healthkit").TemperatureUnit | "km/ms" | "km/s" | "km/ps" | "km/ns" | "km/mcs" | "km/cs" | "km/ds" | "km/das" | "km/hs" | "km/ks" | "km/Ms" | "km/Gs" | "km/Ts" | "km/fs" | "km/d" | "km/min" | "km/hr" | "m/ms" | "m/s" | "m/ps" | "m/ns" | "m/mcs" | "m/cs" | "m/ds" | "m/das" | "m/hs" | "m/ks" | "m/Ms" | "m/Gs" | "m/Ts" | "m/fs" | "m/d" | "m/min" | "m/hr" | "pm/ms" | "pm/s" | "pm/ps" | "pm/ns" | "pm/mcs" | "pm/cs" | "pm/ds" | "pm/das" | "pm/hs" | "pm/ks" | "pm/Ms" | "pm/Gs" | "pm/Ts" | "pm/fs" | "pm/d" | "pm/min" | "pm/hr" | "nm/ms" | "nm/s" | "nm/ps" | "nm/ns" | "nm/mcs" | "nm/cs" | "nm/ds" | "nm/das" | "nm/hs" | "nm/ks" | "nm/Ms" | "nm/Gs" | "nm/Ts" | "nm/fs" | "nm/d" | "nm/min" | "nm/hr" | "mcm/ms" | "mcm/s" | "mcm/ps" | "mcm/ns" | "mcm/mcs" | "mcm/cs" | "mcm/ds" | "mcm/das" | "mcm/hs" | "mcm/ks" | "mcm/Ms" | "mcm/Gs" | "mcm/Ts" | "mcm/fs" | "mcm/d" | "mcm/min" | "mcm/hr" | "mm/ms" | "mm/s" | "mm/ps" | "mm/ns" | "mm/mcs" | "mm/cs" | "mm/ds" | "mm/das" | "mm/hs" | "mm/ks" | "mm/Ms" | "mm/Gs" | "mm/Ts" | "mm/fs" | "mm/d" | "mm/min" | "mm/hr" | "cm/ms" | "cm/s" | "cm/ps" | "cm/ns" | "cm/mcs" | "cm/cs" | "cm/ds" | "cm/das" | "cm/hs" | "cm/ks" | "cm/Ms" | "cm/Gs" | "cm/Ts" | "cm/fs" | "cm/d" | "cm/min" | "cm/hr" | "dm/ms" | "dm/s" | "dm/ps" | "dm/ns" | "dm/mcs" | "dm/cs" | "dm/ds" | "dm/das" | "dm/hs" | "dm/ks" | "dm/Ms" | "dm/Gs" | "dm/Ts" | "dm/fs" | "dm/d" | "dm/min" | "dm/hr" | "dam/ms" | "dam/s" | "dam/ps" | "dam/ns" | "dam/mcs" | "dam/cs" | "dam/ds" | "dam/das" | "dam/hs" | "dam/ks" | "dam/Ms" | "dam/Gs" | "dam/Ts" | "dam/fs" | "dam/d" | "dam/min" | "dam/hr" | "hm/ms" | "hm/s" | "hm/ps" | "hm/ns" | "hm/mcs" | "hm/cs" | "hm/ds" | "hm/das" | "hm/hs" | "hm/ks" | "hm/Ms" | "hm/Gs" | "hm/Ts" | "hm/fs" | "hm/d" | "hm/min" | "hm/hr" | "Mm/ms" | "Mm/s" | "Mm/ps" | "Mm/ns" | "Mm/mcs" | "Mm/cs" | "Mm/ds" | "Mm/das" | "Mm/hs" | "Mm/ks" | "Mm/Ms" | "Mm/Gs" | "Mm/Ts" | "Mm/fs" | "Mm/d" | "Mm/min" | "Mm/hr" | "Gm/ms" | "Gm/s" | "Gm/ps" | "Gm/ns" | "Gm/mcs" | "Gm/cs" | "Gm/ds" | "Gm/das" | "Gm/hs" | "Gm/ks" | "Gm/Ms" | "Gm/Gs" | "Gm/Ts" | "Gm/fs" | "Gm/d" | "Gm/min" | "Gm/hr" | "Tm/ms" | "Tm/s" | "Tm/ps" | "Tm/ns" | "Tm/mcs" | "Tm/cs" | "Tm/ds" | "Tm/das" | "Tm/hs" | "Tm/ks" | "Tm/Ms" | "Tm/Gs" | "Tm/Ts" | "Tm/fs" | "Tm/d" | "Tm/min" | "Tm/hr" | "fm/ms" | "fm/s" | "fm/ps" | "fm/ns" | "fm/mcs" | "fm/cs" | "fm/ds" | "fm/das" | "fm/hs" | "fm/ks" | "fm/Ms" | "fm/Gs" | "fm/Ts" | "fm/fs" | "fm/d" | "fm/min" | "fm/hr" | "ft/ms" | "ft/s" | "ft/ps" | "ft/ns" | "ft/mcs" | "ft/cs" | "ft/ds" | "ft/das" | "ft/hs" | "ft/ks" | "ft/Ms" | "ft/Gs" | "ft/Ts" | "ft/fs" | "ft/d" | "ft/min" | "ft/hr" | "in/ms" | "in/s" | "in/ps" | "in/ns" | "in/mcs" | "in/cs" | "in/ds" | "in/das" | "in/hs" | "in/ks" | "in/Ms" | "in/Gs" | "in/Ts" | "in/fs" | "in/d" | "in/min" | "in/hr" | "yd/ms" | "yd/s" | "yd/ps" | "yd/ns" | "yd/mcs" | "yd/cs" | "yd/ds" | "yd/das" | "yd/hs" | "yd/ks" | "yd/Ms" | "yd/Gs" | "yd/Ts" | "yd/fs" | "yd/d" | "yd/min" | "yd/hr" | "mi/ms" | "mi/s" | "mi/ps" | "mi/ns" | "mi/mcs" | "mi/cs" | "mi/ds" | "mi/das" | "mi/hs" | "mi/ks" | "mi/Ms" | "mi/Gs" | "mi/Ts" | "mi/fs" | "mi/d" | "mi/min" | "mi/hr" | "pg" | "ng" | "mcg" | "cg" | "dg" | "dag" | "hg" | "Mg" | "Gg" | "Tg" | "fg" | import("@kingstinct/react-native-healthkit").UnitOfMass | "l" | "pl" | "nl" | "mcl" | "ml" | "cl" | "dl" | "dal" | "hl" | "kl" | "Ml" | "Gl" | "Tl" | "fl" | import("@kingstinct/react-native-healthkit").UnitOfVolume | "IU" | "count/ms" | "count/s" | "count/ps" | "count/ns" | "count/mcs" | "count/cs" | "count/ds" | "count/das" | "count/hs" | "count/ks" | "count/Ms" | "count/Gs" | "count/Ts" | "count/fs" | "count/d" | "count/hr" | "Hz" | "pHz" | "nHz" | "mcHz" | "mHz" | "cHz" | "dHz" | "daHz" | "hHz" | "kHz" | "MHz" | "GHz" | "THz" | "fHz" | "Pa" | "pPa" | "nPa" | "mcPa" | "mPa" | "cPa" | "dPa" | "daPa" | "hPa" | "kPa" | "MPa" | "GPa" | "TPa" | "fPa" | import("@kingstinct/react-native-healthkit").UnitOfPressure | "mmol<180.15588000005408>/l" | "Cal" | "dBHL" | "dBASPL" | "appleEffortScore" | "ft" | "in" | "yd" | "mi" | "oz" | "st" | "lb" | "atm" | "cmAq" | "inHg" | "degF" | "K" | "d" | "hr" | "cup_imp" | "fl_oz_imp" | "pt_imp" | "cup_us" | "fl_oz_us" | "pt_us">[];
|
|
64
67
|
} | {
|
|
65
68
|
data: import("@kingstinct/react-native-healthkit").HKCorrelation<HKCorrelationTypeIdentifier>[];
|
|
66
69
|
anchor: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"AAAA,OAAkB,EAChB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EAGxB,YAAY,EACb,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-samples-from-health.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/get-samples-from-health.ts"],"names":[],"mappings":"AAAA,OAAkB,EAChB,2BAA2B,EAC3B,wBAAwB,EACxB,wBAAwB,EAGxB,YAAY,EACb,MAAM,oCAAoC,CAAC;AAI5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAe5D,QAAA,MAAM,oBAAoB,GAAU,qEAMjC,wBAAwB,CAAC,6BAA6B,CAAC;;;;UA2IvC,oBAAoB,EAAE;YAAU,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA7B3D,CAAC;AAwFF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RecordType } from "react-native-health-connect";
|
|
2
|
+
import { SeriesHealthData } from "../types/health-data";
|
|
3
|
+
/** The finished hours from `startDate`, one `series` item an hour, read a day at a time. */
|
|
4
|
+
declare const getHealthConnectSeries: (typeIdentifier: RecordType, startDate: Date) => Promise<{
|
|
5
|
+
data: SeriesHealthData[];
|
|
6
|
+
anchor: undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export { getHealthConnectSeries };
|
|
9
|
+
//# sourceMappingURL=health-connect-series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-connect-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-connect-series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAmExD,4FAA4F;AAC5F,QAAA,MAAM,sBAAsB,GAC1B,gBAAgB,UAAU,EAC1B,WAAW,IAAI,KACd,OAAO,CAAC;IAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAgBzD,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
import { SeriesHealthData } from "../types/health-data";
|
|
3
|
+
/**
|
|
4
|
+
* The finished hours from `startDate`, one `series` item an hour, from HealthKit's own average a minute: it follows
|
|
5
|
+
* the user's source priority where a watch and another app both recorded. Read a day at a time.
|
|
6
|
+
*/
|
|
7
|
+
declare const getHealthKitSeries: (typeIdentifier: HKQuantityTypeIdentifier, startDate: Date) => Promise<{
|
|
8
|
+
data: SeriesHealthData[];
|
|
9
|
+
anchor: undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export { getHealthKitSeries };
|
|
12
|
+
//# sourceMappingURL=healthkit-series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"healthkit-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/healthkit-series.ts"],"names":[],"mappings":"AAAA,OAAkB,EAAE,wBAAwB,EAAuB,MAAM,oCAAoC,CAAC;AAG9G,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD;;;GAGG;AACH,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,wBAAwB,EACxC,WAAW,IAAI,KACd,OAAO,CAAC;IAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CA0BzD,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SeriesHealthData } from "../types/health-data";
|
|
2
|
+
/** A minute's value: the average of what was measured in it. */
|
|
3
|
+
type MinuteValue = {
|
|
4
|
+
start: Date;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Per-minute values grouped into hours (UTC, so a day never has two 01:00s), each with one slot a minute and `null`
|
|
9
|
+
* for a minute without a value. Hours without any value are left out.
|
|
10
|
+
*/
|
|
11
|
+
declare const toHourlySeries: (typeIdentifier: string, unit: string, minutes: readonly MinuteValue[]) => SeriesHealthData[];
|
|
12
|
+
/**
|
|
13
|
+
* The finished hours from `start`'s hour up to the current one, in windows of a day at most: one health-store query
|
|
14
|
+
* each, so a first import of months doesn't ask for everything at once.
|
|
15
|
+
*/
|
|
16
|
+
declare const finishedHourWindows: (start: Date, now?: Date) => Array<{
|
|
17
|
+
from: Date;
|
|
18
|
+
to: Date;
|
|
19
|
+
}>;
|
|
20
|
+
export { finishedHourWindows, toHourlySeries };
|
|
21
|
+
export type { MinuteValue };
|
|
22
|
+
//# sourceMappingURL=hourly-series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hourly-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/hourly-series.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD,gEAAgE;AAChE,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAElD;;;GAGG;AACH,QAAA,MAAM,cAAc,GAClB,gBAAgB,MAAM,EACtB,MAAM,MAAM,EACZ,SAAS,SAAS,WAAW,EAAE,KAC9B,gBAAgB,EAuBlB,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,mBAAmB,GAAI,OAAO,IAAI,EAAE,UAAgB,KAAG,KAAK,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,EAAE,EAAE,IAAI,CAAA;CAAE,CAS1F,CAAC;AAEF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAC;AAC/C,YAAY,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HealthDataMode } from "../types/health-sync-keys";
|
|
2
|
+
/**
|
|
3
|
+
* Modes whose observation is written over when its source changes, a day's total that grew or an hour of a series
|
|
4
|
+
* that got more minutes, instead of being created once.
|
|
5
|
+
*/
|
|
6
|
+
export declare const replacesSavedObservation: (mode?: HealthDataMode) => boolean;
|
|
7
|
+
//# sourceMappingURL=replaces-saved-observation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replaces-saved-observation.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/replaces-saved-observation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,OAAO,cAAc,KAAG,OACQ,CAAC"}
|