@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
package/lib/typescript/commonjs/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/commonjs/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;
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts.map
CHANGED
|
@@ -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
|
package/lib/typescript/commonjs/src/modules/data-sync/utils/replaces-saved-observation.d.ts.map
ADDED
|
@@ -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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MeasurementTypeKey } from "@ovok/core";
|
|
2
|
+
import type { AcceptedDevice } from "../../bt-management/types/accepted-device";
|
|
3
|
+
import type { DeviceKey } from "../../bt-management/types/device-key";
|
|
4
|
+
import type { DeviceResultPolicy } from "../../bt-management/types/result-policy";
|
|
5
|
+
import type { DeviceDelivery, DeviceImageCredit, DeviceKind } from "../types/device-kind";
|
|
6
|
+
/** The key BTManager reports a device under (`deviceData.name`): a built-in parser or a declaration id. */
|
|
7
|
+
declare const deviceKeyOf: (device: AcceptedDevice) => DeviceKey;
|
|
8
|
+
/**
|
|
9
|
+
* The reading a device is for. Heart rate comes along with most readings (a blood pressure, an ECG,
|
|
10
|
+
* a step count), so it is the main one only on a device that measures nothing else.
|
|
11
|
+
*/
|
|
12
|
+
declare const primaryMeasurementOf: (types: readonly MeasurementTypeKey[]) => MeasurementTypeKey | undefined;
|
|
13
|
+
declare const kindOf: (types: readonly MeasurementTypeKey[]) => DeviceKind;
|
|
14
|
+
/**
|
|
15
|
+
* Devices that send readings continuously while connected rather than one per measurement: the
|
|
16
|
+
* live oximeters, the PC-100 and PC-300 monitors, the wearable T31 thermometer, the Lepod after
|
|
17
|
+
* its stored recordings, and Bluetooth SIG heart-rate straps (a value a second).
|
|
18
|
+
*/
|
|
19
|
+
declare const LIVE_DEVICE_KEYS: ReadonlySet<string>;
|
|
20
|
+
declare const deliveryOf: (keys: readonly DeviceKey[]) => DeviceDelivery;
|
|
21
|
+
/**
|
|
22
|
+
* Keeps a live device's whole stream: every live value goes into a series of one-second slots, reported as one
|
|
23
|
+
* result when it closes (after an hour, or 15 minutes without a value). The single measurements a live device also
|
|
24
|
+
* takes, a blood pressure, a glucose reading or an ECG recording, are each reported. Pass it in `resultPolicies` for
|
|
25
|
+
* live devices (`resultPoliciesFor` does it for a whole list), with `seriesStorage` so a series survives the app
|
|
26
|
+
* closing.
|
|
27
|
+
*/
|
|
28
|
+
declare const LIVE_RESULT_POLICY: DeviceResultPolicy;
|
|
29
|
+
/** `"Label: https://…"` as `{ label, url }`; an SDK illustration's note as its first clause. */
|
|
30
|
+
declare const imageCreditOf: (credit: string) => DeviceImageCredit;
|
|
31
|
+
export { deliveryOf, deviceKeyOf, imageCreditOf, kindOf, LIVE_DEVICE_KEYS, LIVE_RESULT_POLICY, primaryMeasurementOf, };
|
|
32
|
+
//# sourceMappingURL=device-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-model.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/device-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAM1F,2GAA2G;AAC3G,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,SACG,CAAC;AAoBlD;;;GAGG;AACH,QAAA,MAAM,oBAAoB,GACxB,OAAO,SAAS,kBAAkB,EAAE,KACnC,kBAAkB,GAAG,SAAoE,CAAC;AAE7F,QAAA,MAAM,MAAM,GAAI,OAAO,SAAS,kBAAkB,EAAE,KAAG,UAQtD,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAaxC,CAAC;AAEH,QAAA,MAAM,UAAU,GAAI,MAAM,SAAS,SAAS,EAAE,KAAG,cACgB,CAAC;AAElE;;;;;;GAMG;AACH,QAAA,MAAM,kBAAkB,EAAE,kBAGzB,CAAC;AAEF,gGAAgG;AAChG,QAAA,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,iBAIvC,CAAC;AAEF,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { MeasurementTypeKey } from "@ovok/core";
|
|
2
2
|
import type { AcceptedDevice } from "../../bt-management/types/accepted-device";
|
|
3
|
+
import type { DeviceKey } from "../../bt-management/types/device-key";
|
|
4
|
+
import type { DeviceDelivery, DeviceImageCredit, DeviceKind } from "../types/device-kind";
|
|
3
5
|
type SupportedDevice = {
|
|
4
6
|
name: string;
|
|
5
7
|
nameKey: string;
|
|
@@ -15,6 +17,21 @@ type SupportedDeviceDefinition = SupportedDevice & {
|
|
|
15
17
|
acceptedDevices: readonly AcceptedDevice[];
|
|
16
18
|
measurementTypes: readonly MeasurementTypeKey[];
|
|
17
19
|
manualUrl?: string;
|
|
20
|
+
/** Every key BTManager reports this product's devices under (`deviceData.name`). */
|
|
21
|
+
keys: readonly DeviceKey[];
|
|
22
|
+
/** What the product is for: a blood-pressure monitor, a weight scale, an ECG recorder… */
|
|
23
|
+
kind: DeviceKind;
|
|
24
|
+
/** The reading it is for; the rest of `measurementTypes` come along with it. */
|
|
25
|
+
primaryMeasurement?: MeasurementTypeKey;
|
|
26
|
+
/** One reading per measurement, or values continuously while connected. */
|
|
27
|
+
delivery: DeviceDelivery;
|
|
28
|
+
/**
|
|
29
|
+
* Its parser also serves other products (rebadged models, a Bluetooth SIG profile), so a
|
|
30
|
+
* connected device may be any of them: `deviceData.variant` names the one it is, when known.
|
|
31
|
+
*/
|
|
32
|
+
shared: boolean;
|
|
33
|
+
/** `creditsForImage` as a label and, for a web source, its URL. */
|
|
34
|
+
imageCredit: DeviceImageCredit;
|
|
18
35
|
};
|
|
19
36
|
/**
|
|
20
37
|
* Concrete devices and device families supported by the Bluetooth module.
|
|
@@ -220,7 +237,7 @@ declare const Devices: readonly [{
|
|
|
220
237
|
readonly creditsForImage: "Bluetooth SIG official brand assets: https://www.bluetooth.com/media/";
|
|
221
238
|
readonly standardProfile: true;
|
|
222
239
|
}, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
|
|
223
|
-
/**
|
|
240
|
+
/** The catalog with what each product is: its kind, main reading, delivery and keys. */
|
|
224
241
|
declare const supportedDevices: readonly SupportedDeviceDefinition[];
|
|
225
242
|
declare const SUPPORTED_DEVICES: readonly SupportedDeviceDefinition[];
|
|
226
243
|
/** A de-duplicated list ready to pass directly to BTProvider.acceptedDevices. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supported-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-devices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"supported-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-devices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAyG1F,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG,eAAe,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IAEX,4DAA4D;IAC5D,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oFAAoF;IACpF,IAAI,EAAE,SAAS,SAAS,EAAE,CAAC;IAE3B,0FAA0F;IAC1F,IAAI,EAAE,UAAU,CAAC;IAEjB,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,2EAA2E;IAC3E,QAAQ,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB,mEAAmE;IACnE,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AASF;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oOAgOkC,CAAC;AAwUhD,wFAAwF;AACxF,QAAA,MAAM,gBAAgB,EAAE,SAAS,yBAAyB,EAYxD,CAAC;AAEH,QAAA,MAAM,iBAAiB,sCAAmB,CAAC;AAK3C,iFAAiF;AACjF,QAAA,MAAM,0BAA0B,EAAE,SAAS,cAAc,EAMxD,CAAC;AAEF,OAAO,EACL,OAAO,EACP,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,GACjB,CAAC;AACF,YAAY,EAAE,eAAe,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SupportedDeviceDefinition } from "../constants/supported-devices";
|
|
2
|
+
import { type DeviceFilter } from "../utils/device-query";
|
|
3
|
+
/**
|
|
4
|
+
* The catalog products matching `filter`, in catalog order: by kind, manufacturer, what they
|
|
5
|
+
* measure, delivery, key, or a `where` of your own. Every product without a filter.
|
|
6
|
+
*/
|
|
7
|
+
declare const useSupportedDevices: (filter?: DeviceFilter) => SupportedDeviceDefinition[];
|
|
8
|
+
export { useSupportedDevices };
|
|
9
|
+
//# sourceMappingURL=use-supported-devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-supported-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/hooks/use-supported-devices.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEhF,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAElF;;;GAGG;AACH,QAAA,MAAM,mBAAmB,GAAI,SAAS,YAAY,KAAG,yBAAyB,EACf,CAAC;AAEhE,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -8,6 +8,11 @@ export * from "./constants/device-list-items";
|
|
|
8
8
|
export * from "./constants/device-instruction-pdfs";
|
|
9
9
|
export * from "./constants/device-images";
|
|
10
10
|
export * from "./constants/supported-devices";
|
|
11
|
+
export { deliveryOf, deviceKeyOf, imageCreditOf, kindOf, LIVE_DEVICE_KEYS, LIVE_RESULT_POLICY, primaryMeasurementOf, } from "./constants/device-model";
|
|
12
|
+
export * from "./types/device-kind";
|
|
13
|
+
export { deviceMatches, filterSupportedDevices, findSupportedDevice, resultPoliciesFor, } from "./utils/device-query";
|
|
14
|
+
export type { DeviceFilter, OneOrMany, TextMatch } from "./utils/device-query";
|
|
15
|
+
export * from "./hooks/use-supported-devices";
|
|
11
16
|
export * from "./types/device-list-item";
|
|
12
17
|
export * from "./types/supported-device-list-props";
|
|
13
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/bt-device/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/bt-device/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,MAAM,EACN,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC/E,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** What a device is for, named after its main measurement. */
|
|
2
|
+
type DeviceKind = "blood-pressure-monitor" | "weight-scale" | "pulse-oximeter" | "thermometer" | "glucose-meter" | "ecg-recorder" | "heart-rate-monitor" | "activity-tracker" | "urine-analyzer" | "lipid-analyzer" | "respiratory-therapy" | "sleep-monitor"
|
|
3
|
+
/** Three or more kinds of reading, such as the Checkme, the PC-300 or the Lepod. */
|
|
4
|
+
| "multi-parameter-monitor" | "other";
|
|
5
|
+
/**
|
|
6
|
+
* How a device hands over readings: `spot` gives one per measurement; `live` sends values every
|
|
7
|
+
* second or so for as long as it is connected (a heart-rate strap, a live oximeter, the Lepod).
|
|
8
|
+
*/
|
|
9
|
+
type DeviceDelivery = "spot" | "live";
|
|
10
|
+
/** Who made the catalog image, and where it came from when that is a web page. */
|
|
11
|
+
type DeviceImageCredit = {
|
|
12
|
+
label: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
};
|
|
15
|
+
export type { DeviceDelivery, DeviceImageCredit, DeviceKind };
|
|
16
|
+
//# sourceMappingURL=device-kind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-kind.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/types/device-kind.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,KAAK,UAAU,GACX,wBAAwB,GACxB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,kBAAkB,GAClB,gBAAgB,GAChB,gBAAgB,GAChB,qBAAqB,GACrB,eAAe;AAEjB,oFAAoF;GAClF,yBAAyB,GACzB,OAAO,CAAC;AAEZ;;;GAGG;AACH,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,kFAAkF;AAClF,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DeviceData } from "../../bt-management/types/device-data";
|
|
2
|
+
import type { DeviceKey } from "../../bt-management/types/device-key";
|
|
3
|
+
import type { DeviceResultPolicy } from "../../bt-management/types/result-policy";
|
|
4
|
+
import type { DeviceDelivery, DeviceKind } from "../types/device-kind";
|
|
5
|
+
import type { MeasurementTypeKey } from "@ovok/core";
|
|
6
|
+
import { type SupportedDeviceDefinition } from "../constants/supported-devices";
|
|
7
|
+
type OneOrMany<T> = T | readonly T[];
|
|
8
|
+
/** Text to match: a value (in any case), any of several, or a pattern. */
|
|
9
|
+
type TextMatch = OneOrMany<string> | RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* Narrows the device catalog. Every field given must match, and a list matches any one of its
|
|
12
|
+
* values: `{ kind: "blood-pressure-monitor", manufacturer: "HARTMANN" }`,
|
|
13
|
+
* `{ measures: MeasurementTypeKey.ecg, delivery: "spot" }`, `{ manufacturer: /yonker/i }`.
|
|
14
|
+
*/
|
|
15
|
+
type DeviceFilter = {
|
|
16
|
+
id?: OneOrMany<string>;
|
|
17
|
+
name?: TextMatch;
|
|
18
|
+
manufacturer?: TextMatch;
|
|
19
|
+
kind?: OneOrMany<DeviceKind>;
|
|
20
|
+
/** Measures any of these. */
|
|
21
|
+
measures?: OneOrMany<MeasurementTypeKey>;
|
|
22
|
+
primaryMeasurement?: OneOrMany<MeasurementTypeKey>;
|
|
23
|
+
delivery?: DeviceDelivery;
|
|
24
|
+
/** Reported under any of these keys (`deviceData.name`). */
|
|
25
|
+
key?: OneOrMany<DeviceKey>;
|
|
26
|
+
shared?: boolean;
|
|
27
|
+
standardProfile?: boolean;
|
|
28
|
+
/** Anything the fields above don't cover. */
|
|
29
|
+
where?: (device: SupportedDeviceDefinition) => boolean;
|
|
30
|
+
};
|
|
31
|
+
declare const listOf: <T>(value: OneOrMany<T>) => readonly T[];
|
|
32
|
+
/** Whether a catalog product matches every field of `filter`. */
|
|
33
|
+
declare const deviceMatches: (device: SupportedDeviceDefinition, filter?: DeviceFilter) => boolean;
|
|
34
|
+
/** The catalog products matching `filter`, in catalog order. */
|
|
35
|
+
declare const filterSupportedDevices: (filter?: DeviceFilter, devices?: readonly SupportedDeviceDefinition[]) => SupportedDeviceDefinition[];
|
|
36
|
+
/**
|
|
37
|
+
* The catalog product behind a string (a catalog id, else a product name, else a reported key) or
|
|
38
|
+
* a connected device's `deviceData`: the product its advertised name identified, else its key's
|
|
39
|
+
* product. Pass `deviceData` for a device: a key can also be another product's name.
|
|
40
|
+
*/
|
|
41
|
+
declare const findSupportedDevice: (of: string | Pick<DeviceData, "name" | "variant">) => SupportedDeviceDefinition | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* `resultPolicies` keeping each live device in `devices` as series (`LIVE_RESULT_POLICY`); spot devices keep every
|
|
44
|
+
* reading.
|
|
45
|
+
*/
|
|
46
|
+
declare const resultPoliciesFor: (devices: readonly SupportedDeviceDefinition[]) => Record<string, DeviceResultPolicy>;
|
|
47
|
+
export { deviceMatches, filterSupportedDevices, findSupportedDevice, listOf, resultPoliciesFor, };
|
|
48
|
+
export type { DeviceFilter, OneOrMany, TextMatch };
|
|
49
|
+
//# sourceMappingURL=device-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-query.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/utils/device-query.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGrD,OAAO,EAAqB,KAAK,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAEnG,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC;AAErC,0EAA0E;AAC1E,KAAK,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,KAAK,YAAY,GAAG;IAClB,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE7B,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IACzC,kBAAkB,CAAC,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B,4DAA4D;IAC5D,GAAG,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,6CAA6C;IAC7C,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,yBAAyB,KAAK,OAAO,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,GAAI,CAAC,EAAG,OAAO,SAAS,CAAC,CAAC,CAAC,KAAG,SAAS,CAAC,EAA+B,CAAC;AAOpF,iEAAiE;AACjE,QAAA,MAAM,aAAa,GAAI,QAAQ,yBAAyB,EAAE,SAAQ,YAAiB,KAAG,OAehC,CAAC;AAEvD,gEAAgE;AAChE,QAAA,MAAM,sBAAsB,GAC1B,SAAS,YAAY,EACrB,UAAS,SAAS,yBAAyB,EAAsB,KAChE,yBAAyB,EAA+D,CAAC;AAe5F;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,GACvB,IAAI,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC,KAChD,yBAAyB,GAAG,SAQ9B,CAAC;AAEF;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GACrB,SAAS,SAAS,yBAAyB,EAAE,KAC5C,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAKjC,CAAC;AAEJ,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,EACN,iBAAiB,GAClB,CAAC;AACF,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAsCjF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,mWAqBvE,KAAK,CAAC,iBAAiB,CACxB,2BAA2B,CAAC,CAAC,CAAC,GAAG;IAAE,wBAAwB,CAAC,EAAE,OAAO,CAAA;CAAE,CACxE,
|
|
1
|
+
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AAsCjF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,mWAqBvE,KAAK,CAAC,iBAAiB,CACxB,2BAA2B,CAAC,CAAC,CAAC,GAAG;IAAE,wBAAwB,CAAC,EAAE,OAAO,CAAA;CAAE,CACxE,sBAqgBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blood-pressure-translated-exception-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/constants/blood-pressure-translated-exception-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"blood-pressure-translated-exception-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/constants/blood-pressure-translated-exception-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,eAAO,MAAM,mCAAmC,kCAoB9C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The translation keys a failed measurement reports, as `BluetoothError.translationKey` (and its
|
|
3
|
+
* message): compare against these rather than the strings, and translate them in the app.
|
|
4
|
+
*/
|
|
5
|
+
declare const MeasurementFeedbackKey: {
|
|
6
|
+
readonly DEVICE_ERROR: "feedback-messages.measurement.device-error";
|
|
7
|
+
readonly DEVICE_INTERRUPTED: "feedback-messages.measurement.device-interrupted";
|
|
8
|
+
readonly COMMAND_TIMEOUT: "feedback-messages.measurement.command-timeout";
|
|
9
|
+
/** The device stopped sending mid-measurement (or mid-transfer, after a reading already arrived). */
|
|
10
|
+
readonly STUCK: "feedback-messages.measurement.stuck-error";
|
|
11
|
+
readonly CORRUPT_FRAME: "feedback-messages.measurement.corrupt-frame-error";
|
|
12
|
+
readonly INSUFFICIENT_DATA_LENGTH: "feedback-messages.measurement.insufficient-data-length";
|
|
13
|
+
readonly DISTURB_DETECTED: "feedback-messages.measurement.disturb-detected-error";
|
|
14
|
+
readonly WEAK_SIGNAL: "feedback-messages.measurement.weak-signal-error";
|
|
15
|
+
readonly POOR_WAVEFORM: "feedback-messages.measurement.poor-waveform-error";
|
|
16
|
+
readonly LOOSE_SLEEVE: "feedback-messages.measurement.loose-sleeve-error";
|
|
17
|
+
readonly LEAD_OFF: "feedback-messages.measurement.lead-off-error";
|
|
18
|
+
};
|
|
19
|
+
type MeasurementFeedbackKey = (typeof MeasurementFeedbackKey)[keyof typeof MeasurementFeedbackKey];
|
|
20
|
+
export { MeasurementFeedbackKey };
|
|
21
|
+
//# sourceMappingURL=measurement-feedback.d.ts.map
|
package/lib/typescript/module/src/modules/bt-management/constants/measurement-feedback.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measurement-feedback.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/constants/measurement-feedback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,QAAA,MAAM,sBAAsB;;;;IAK1B,qGAAqG;;;;;;;;;CAS7F,CAAC;AAEX,KAAK,sBAAsB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEnG,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Characteristic } from "react-native-ble-plx";
|
|
2
2
|
import { DeviceKey } from "../types/device-key";
|
|
3
3
|
import { RuntimeDevice, RuntimeResult } from "./runtime-context";
|
|
4
|
+
import { BTDeviceFilter } from "./use-bt-devices";
|
|
4
5
|
interface UseBTDeviceOptions {
|
|
5
6
|
id?: string;
|
|
6
7
|
autoConnect?: boolean;
|
|
@@ -11,11 +12,11 @@ interface RawBluetoothAccess {
|
|
|
11
12
|
write: (serviceUUID: string, characteristicUUID: string, base64Value: string, withResponse?: boolean) => Promise<Characteristic>;
|
|
12
13
|
}
|
|
13
14
|
declare class DeviceSelectionRequiredError extends Error {
|
|
14
|
-
constructor(model:
|
|
15
|
+
constructor(model: string, ids: readonly string[]);
|
|
15
16
|
}
|
|
16
|
-
declare const useBTDevice: (
|
|
17
|
-
model: DeviceKey;
|
|
18
|
-
devices: RuntimeDevice[];
|
|
17
|
+
declare const useBTDevice: <Filter extends BTDeviceFilter>(filter: Filter, { id, autoConnect, allowRawAccess }?: UseBTDeviceOptions) => {
|
|
18
|
+
model: Filter extends DeviceKey ? Filter : undefined;
|
|
19
|
+
devices: readonly RuntimeDevice[];
|
|
19
20
|
device: RuntimeDevice | undefined;
|
|
20
21
|
requiresSelection: boolean;
|
|
21
22
|
status: import("..").DeviceStatus | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bt-device.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bt-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAEL,aAAa,EACb,aAAa,
|
|
1
|
+
{"version":3,"file":"use-bt-device.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bt-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,sBAAsB,CAAC;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAEL,aAAa,EACb,aAAa,EAEd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAgB,MAAM,kBAAkB,CAAC;AAEhE,UAAU,kBAAkB;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IACnF,KAAK,EAAE,CACL,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE,OAAO,KACnB,OAAO,CAAC,cAAc,CAAC,CAAC;CAC9B;AAED,cAAM,4BAA6B,SAAQ,KAAK;gBAClC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,MAAM,EAAE;CAIlD;AAmCD,QAAA,MAAM,WAAW,GAAI,MAAM,SAAS,cAAc,EAChD,QAAQ,MAAM,EACd,sCAAqD,kBAAuB;;;;;;;;;uBA8ChC,MAAM;;;;CAoGnD,CAAC;AAEF,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SupportedDeviceDefinition } from "../../bt-device/constants/supported-devices";
|
|
2
|
+
import { type DeviceFilter, type OneOrMany } from "../../bt-device/utils/device-query";
|
|
3
|
+
import { DeviceKey } from "../types/device-key";
|
|
4
|
+
import { DeviceStatus } from "../types/device-status";
|
|
5
|
+
import { RuntimeDevice } from "./runtime-context";
|
|
6
|
+
/**
|
|
7
|
+
* Which connected or nearby devices to follow: a model key (`deviceData.name` or `.model`), or a
|
|
8
|
+
* filter over what the device is (any `DeviceFilter` field, matched against its catalog product)
|
|
9
|
+
* and its state. `{ kind: "weight-scale" }`, `{ manufacturer: "HARTMANN", status: DeviceStatus.CONNECTED }`.
|
|
10
|
+
* A device whose parser serves several products counts as the one its advertised name identifies,
|
|
11
|
+
* else as its parser's product.
|
|
12
|
+
*/
|
|
13
|
+
type BTDeviceFilter = DeviceKey | (Omit<DeviceFilter, "where"> & {
|
|
14
|
+
status?: OneOrMany<DeviceStatus>;
|
|
15
|
+
/** Anything else, given the device and its catalog product (when the catalog has it). */
|
|
16
|
+
where?: (device: RuntimeDevice, product: SupportedDeviceDefinition | undefined) => boolean;
|
|
17
|
+
});
|
|
18
|
+
/** Whether a runtime device is one `filter` asks for. */
|
|
19
|
+
declare const btDeviceMatches: (device: RuntimeDevice, filter: BTDeviceFilter) => boolean;
|
|
20
|
+
/** Every connected or nearby device `filter` asks for, in the order Bluetooth found them. */
|
|
21
|
+
declare const useBTDevices: (filter: BTDeviceFilter) => readonly RuntimeDevice[];
|
|
22
|
+
export { btDeviceMatches, useBTDevices };
|
|
23
|
+
export type { BTDeviceFilter };
|
|
24
|
+
//# sourceMappingURL=use-bt-devices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-bt-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-bt-devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAE7F,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAwB,MAAM,mBAAmB,CAAC;AAExE;;;;;;GAMG;AACH,KAAK,cAAc,GACf,SAAS,GACT,CAAC,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG;IAC7B,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IAEjC,yFAAyF;IACzF,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,yBAAyB,GAAG,SAAS,KAAK,OAAO,CAAC;CAC5F,CAAC,CAAC;AAEP,yDAAyD;AACzD,QAAA,MAAM,eAAe,GAAI,QAAQ,aAAa,EAAE,QAAQ,cAAc,KAAG,OAcxE,CAAC;AAWF,6FAA6F;AAC7F,QAAA,MAAM,YAAY,GAAI,QAAQ,cAAc,KAAG,SAAS,aAAa,EAIlE,CAAC;AAEJ,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OpenSeries } from "../types/measurement-series";
|
|
2
|
+
type SeriesSource = {
|
|
3
|
+
getOpenSeries: () => readonly OpenSeries[];
|
|
4
|
+
subscribeOpenSeries: (listener: () => void) => () => void;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* The series a `BTManager` is recording, updated as each value arrives: the live values to show while a device
|
|
8
|
+
* streams (`latest`), before the series is stored.
|
|
9
|
+
*/
|
|
10
|
+
declare const useOpenSeries: (manager: SeriesSource | undefined) => readonly OpenSeries[];
|
|
11
|
+
export { useOpenSeries };
|
|
12
|
+
//# sourceMappingURL=use-open-series.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-open-series.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-open-series.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,MAAM,SAAS,UAAU,EAAE,CAAC;IAC3C,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CAC3D,CAAC;AAKF;;;GAGG;AACH,QAAA,MAAM,aAAa,GAAI,SAAS,YAAY,GAAG,SAAS,KAAG,SAAS,UAAU,EAI3E,CAAC;AAEJ,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BackgroundSyncResult } from "../types/background-sync";
|
|
2
|
+
import { DeviceKey } from "../types/device-key";
|
|
3
|
+
type QueueSource<T extends DeviceKey> = {
|
|
4
|
+
getQueued: () => readonly BackgroundSyncResult<T>[];
|
|
5
|
+
subscribe: (listener: () => void) => () => void;
|
|
6
|
+
};
|
|
7
|
+
/** The results a `BackgroundSyncCoordinator` still holds for the current account: readings not saved yet. */
|
|
8
|
+
declare const useQueuedResults: <T extends DeviceKey>(coordinator: QueueSource<T> | undefined) => readonly BackgroundSyncResult<T>[];
|
|
9
|
+
export { useQueuedResults };
|
|
10
|
+
//# sourceMappingURL=use-queued-results.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-queued-results.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-queued-results.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,KAAK,WAAW,CAAC,CAAC,SAAS,SAAS,IAAI;IACtC,SAAS,EAAE,MAAM,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;IACpD,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD,CAAC;AAKF,6GAA6G;AAC7G,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,SAAS,EAC3C,aAAa,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,KACtC,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAIhC,CAAC;AAEJ,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -34,6 +34,7 @@ export * from "./types/bluetooth-permission-status";
|
|
|
34
34
|
export * from "./types/device-status-change-callback";
|
|
35
35
|
export * from "./types/device-connection-event";
|
|
36
36
|
export * from "./types/result-policy";
|
|
37
|
+
export * from "./types/measurement-series";
|
|
37
38
|
export * from "./types/clock-sync";
|
|
38
39
|
export * from "./services/devices/bt-managed-device";
|
|
39
40
|
export * from "./services/devices/blood-glucose/blood-glucose.device";
|
|
@@ -106,8 +107,12 @@ export * from "./hooks/use-nearby-device-offer";
|
|
|
106
107
|
export * from "./hooks/use-paired-devices";
|
|
107
108
|
export * from "./hooks/use-device-connection";
|
|
108
109
|
export * from "./hooks/use-bt-device";
|
|
110
|
+
export * from "./hooks/use-bt-devices";
|
|
111
|
+
export * from "./constants/measurement-feedback";
|
|
109
112
|
export * from "./hooks/use-measurements";
|
|
110
113
|
export * from "./hooks/use-background-sync";
|
|
114
|
+
export * from "./hooks/use-open-series";
|
|
115
|
+
export * from "./hooks/use-queued-results";
|
|
111
116
|
/** @deprecated Import useHealthImport from @ovok/native/data-sync instead. */
|
|
112
117
|
export { useHealthImport, } from "../data-sync/hooks/use-health-import";
|
|
113
118
|
/** @deprecated Import HealthImportAdapter from @ovok/native/data-sync instead. */
|