@ovok/native 1.11.2 → 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-sync-coordinator.js +34 -1
- 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 +23 -1
- 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/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-sync-coordinator.js +34 -1
- 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 +23 -1
- 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/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-sync-coordinator.d.ts +11 -1
- 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 +13 -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/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-sync-coordinator.d.ts +11 -1
- 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 +13 -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/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
|
@@ -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,C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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. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/bt-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4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAE3C,8EAA8E;AAC9E,OAAO,EACL,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAE9C,kFAAkF;AAClF,YAAY,EACV,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BackgroundSyncFlushOptions } from "./background-sync-queue";
|
|
2
|
-
import { BackgroundSyncOptions } from "../../types/background-sync";
|
|
2
|
+
import { BackgroundSyncOptions, BackgroundSyncResult } from "../../types/background-sync";
|
|
3
3
|
import { DeviceKey } from "../../types/device-key";
|
|
4
4
|
import { ResultCallback } from "../../types/result-callback";
|
|
5
5
|
import { DEFAULT_QUEUE_KEY } from "./background-sync-queue";
|
|
@@ -10,10 +10,20 @@ type CoordinatorOptions<T extends DeviceKey> = BackgroundSyncOptions<T> & {
|
|
|
10
10
|
declare class BackgroundSyncCoordinator<T extends DeviceKey> {
|
|
11
11
|
private options;
|
|
12
12
|
private operation;
|
|
13
|
+
private queued;
|
|
14
|
+
private readonly listeners;
|
|
13
15
|
constructor(options: CoordinatorOptions<T>);
|
|
14
16
|
updateOptions(options: CoordinatorOptions<T>): void;
|
|
15
17
|
enqueue: (result: ResultCallback<T>) => Promise<void>;
|
|
16
18
|
flush: (options?: BackgroundSyncFlushOptions) => Promise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* The current account's results still waiting to be accepted, oldest first: readings to show as not saved yet.
|
|
21
|
+
* Kept up to date by every enqueue and flush; `subscribe` reads the stored queue in first.
|
|
22
|
+
*/
|
|
23
|
+
getQueued: () => readonly BackgroundSyncResult<T>[];
|
|
24
|
+
/** Calls `listener` whenever the waiting results change; the first subscriber reads the stored queue in. */
|
|
25
|
+
subscribe: (listener: () => void) => (() => void);
|
|
26
|
+
private publish;
|
|
17
27
|
private runExclusive;
|
|
18
28
|
private flushQueue;
|
|
19
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAIL,iBAAiB,EAIlB,MAAM,yBAAyB,CAAC;AAEjC,+GAA+G;AAC/G,KAAK,kBAAkB,CAAC,CAAC,SAAS,SAAS,IAAI,qBAAqB,CAAC,CAAC,CAAC,GAAG;IACxE,WAAW,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAWF,cAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS;IACjD,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,SAAS,CAAoC;IACrD,OAAO,CAAC,MAAM,CAA0C;IACxD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;gBAEhC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAI1C,aAAa,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI;IAInD,OAAO,GAAI,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC,CA6BzD;IAEK,KAAK,GAAI,UAAS,0BAA+B,KAAG,OAAO,CAAC,IAAI,CAAC,CAOnE;IAEL;;;OAGG;IACI,SAAS,QAAO,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAgB;IAEzE,4GAA4G;IACrG,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAUrD;IAEF,OAAO,CAAC,OAAO,CAeb;IAEF,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,UAAU,CA+GhB;CACH;AAED,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAC;AACxD,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BleManager, Device } from "react-native-ble-plx";
|
|
2
2
|
import { AcceptedDevice } from "../types/accepted-device";
|
|
3
|
+
import { BackgroundSyncStorage } from "../types/background-sync";
|
|
3
4
|
import { ClockSyncOptions } from "../types/clock-sync";
|
|
4
5
|
import { DeviceConnectionEvent } from "../types/device-connection-event";
|
|
5
6
|
import { DeviceKeyOf } from "../types/device-key-of";
|
|
6
7
|
import { DeviceStatusChangeCallback } from "../types/device-status-change-callback";
|
|
7
8
|
import { ErrorCallback } from "../types/error-callback";
|
|
9
|
+
import { OpenSeries } from "../types/measurement-series";
|
|
8
10
|
import { ResultCallback } from "../types/result-callback";
|
|
9
11
|
import { DeviceResultPolicy } from "../types/result-policy";
|
|
10
12
|
import { BTManagedDevice } from "./devices/bt-managed-device";
|
|
@@ -20,6 +22,11 @@ interface BTManagerOptions {
|
|
|
20
22
|
deliveredFileNames?: readonly string[];
|
|
21
23
|
clearDeviceHistory?: boolean;
|
|
22
24
|
resultPolicies?: Partial<Record<string, DeviceResultPolicy>>;
|
|
25
|
+
/**
|
|
26
|
+
* Where series being recorded (a `"series"` result policy) wait, so one survives the app closing; use the store your
|
|
27
|
+
* results queue in. Without it they live in memory, and a closed app loses the series it was recording.
|
|
28
|
+
*/
|
|
29
|
+
seriesStorage?: BackgroundSyncStorage;
|
|
23
30
|
clockSync?: ClockSyncOptions;
|
|
24
31
|
/** Connect one newly discovered device automatically after the scan settles. */
|
|
25
32
|
autoConnect?: boolean;
|
|
@@ -51,6 +58,8 @@ declare class BTManager<T extends readonly AcceptedDevice[]> {
|
|
|
51
58
|
private scanRetryTimer;
|
|
52
59
|
private scanRestartTimer;
|
|
53
60
|
private bluetoothEnablePrompted;
|
|
61
|
+
private readonly series;
|
|
62
|
+
private seriesTimer;
|
|
54
63
|
constructor(bleManager: BleManager, acceptedDevices: T, options?: BTManagerOptions);
|
|
55
64
|
setAutoConnect: (enabledOrOptions: boolean | {
|
|
56
65
|
enabled: boolean;
|
|
@@ -58,6 +67,10 @@ declare class BTManager<T extends readonly AcceptedDevice[]> {
|
|
|
58
67
|
onDeviceSelectionRequired?: BTManagerOptions["onDeviceSelectionRequired"];
|
|
59
68
|
}, delayMs?: number, onDeviceSelectionRequired?: BTManagerOptions["onDeviceSelectionRequired"]) => void;
|
|
60
69
|
destroy: () => void;
|
|
70
|
+
/** The series being recorded, each with its latest values: what to show while a device streams. */
|
|
71
|
+
getOpenSeries: () => readonly OpenSeries[];
|
|
72
|
+
/** Calls `listener` whenever a series gets a value or closes; returns the unsubscribe. */
|
|
73
|
+
subscribeOpenSeries: (listener: () => void) => (() => void);
|
|
61
74
|
startScan: () => void;
|
|
62
75
|
/** Switches only the scan policy; the app can keep a foreground scan broad. */
|
|
63
76
|
setBackgroundScanEnabled: (enabled: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-manager.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/services/bt-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,UAAU,EACV,MAA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,EACvC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,KAClB,OAAO,CAAC,IAAI,CAAC,UAIlB;IAEK,OAAO,GAAI,WAAW,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,UAGxD;IAEK,qBAAqB,GAC1B,WAAW,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,UAIrD;IAEK,iBAAiB,GACtB,WAAW,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,UAIhD;IAEK,QAAQ,GACb,WAAW,CAAC,IAAI,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,UAOzD;IAGF,OAAO,CAAC,gBAAgB,CAAC,CAAiD;IAC1E,OAAO,CAAC,eAAe,CAAC,CAAgC;IACxD,OAAO,CAAC,qBAAqB,CAAC,CAGX;IACnB,OAAO,CAAC,6BAA6B,CAAC,CAE5B;IACV,OAAO,CAAC,yBAAyB,CAAC,CAAwC;IAE1E,OAAO,CAAC,YAAY,CAuFlB;IAEF,OAAO,CAAC,gBAAgB,CAmDtB;IAEF,OAAO,CAAC,8BAA8B,CAYpC;CACH;AAED,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/bc01/bc01.device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bc01.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/bc01/bc01.device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"bc01.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/bc01/bc01.device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAK9C,OAAO,EAAE,kBAAkB,EAAE,MAAM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":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/bp2/bp2.device.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"bp2.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/bp2/bp2.device.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAKvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD;;;GAGG;AACH,4DAA4D;AAC5D,QAAA,MAAM,4BAA4B,WAAW,CAAC;AAO9C,cAAM,SAAU,SAAQ,eAAe,CAAC,iBAAiB,CAAC,GAAG,CAAC;IAC5D,OAAO,CAAC,eAAe,CAAgB;IACvC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,uBAAuB,CAAqB;IACpD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAsB;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyD;IACnF,OAAO,CAAC,cAAc,CAGlB;IACJ,OAAO,CAAC,iBAAiB,CAAqB;IAE9C,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAmB;IACrD,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAS;gBAGzC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG,CAAC;IAUnD,SAAS,CAAC,aAAa,EAAE,MAAM,IAAI,CAKjC;IAEF,SAAS,CAAC,sBAAsB,QAAO,gBAAgB,CA0BrD;IAEF,SAAS,CAAC,WAAW,EAAE,cAAc,CAAwB;IAC7D,SAAS,CAAC,YAAY,EAAE,MAAM,CAAiB;IAE/C,SAAS,CAAC,mBAAmB,CAC3B,aAAa,EAAE,uBAAuB,CACpC,yBAAyB,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CACnD,EACD,eAAe,EAAE,MAAM,EAAE,GACxB,IAAI,GAAG,OAAO;IA0BjB,OAAO,CAAC,eAAe;IA8BvB,OAAO,CAAC,eAAe;IA2CvB,OAAO,CAAC,yBAAyB;IAwBjC,OAAO,CAAC,kBAAkB,CASxB;IAEF,OAAO,CAAC,+BAA+B;IAiDvC,OAAO,CAAC,kBAAkB,CAYxB;IAEF,OAAO,CAAC,YAAY,CAiBF;IAElB,OAAO,CAAC,iBAAiB,CA4CvB;IAEF,OAAO,CAAC,oBAAoB,CAwB1B;IAEF,OAAO,CAAC,kBAAkB,CAIxB;IAEF,OAAO,CAAC,oBAAoB,CAO1B;IAEF,OAAO,CAAC,qBAAqB;CAoD9B;AAED,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-data-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-data-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"bt-data-processor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-data-processor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAK9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAKjF,UAAU,sBAAsB,CAAC,CAAC,SAAS,WAAW;IACpD,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IAC1D,eAAe,CAAC,EAAE,CAChB,MAAM,EAAE,YAAY,EACpB,kBAAkB,CAAC,EAAE,kBAAkB,KACpC,IAAI,CAAC;IACV,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,CACT,UAAU,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAChD,eAAe,EAAE,MAAM,EAAE,KACtB,OAAO,GAAG,IAAI,CAAC;IAEpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,kBAAkB,EAAE,MAAM,KACvB,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;IAE1C,wCAAwC;IACxC,YAAY,CAAC,EAAE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;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB,CA0B1B;IAEF;;OAEG;IACH,OAAO,CAAC,eAAe,CAQrB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW,CAejB;IAEF,OAAO,CAAC,WAAW,CA0BjB;IAEF,OAAO,CAAC,kBAAkB,CAQxB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB,CAevB;IAEF,OAAO,CAAC,mBAAmB,CA2BzB;CACH"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { IBTManagedDevice } from "../../types/i-bt-managed-device";
|
|
|
13
13
|
import { IMedicalDevice } from "../../types/i-medical-device";
|
|
14
14
|
import { IntegratedDevices } from "../../types/integrated-devices";
|
|
15
15
|
import { MeasurementWithCaseType } from "../../types/measurement-with-case-type";
|
|
16
|
+
import { ResultPolicy } from "../../types/result-policy";
|
|
16
17
|
export declare abstract class BTManagedDevice<T extends DeviceKey = IntegratedDevices.BP2> implements IBTManagedDevice {
|
|
17
18
|
readonly device: Device;
|
|
18
19
|
id: string;
|
|
@@ -94,9 +95,11 @@ export declare abstract class BTManagedDevice<T extends DeviceKey = IntegratedDe
|
|
|
94
95
|
onResult?: (data: MeasurementWithCaseType<MeasurementTypeForDevices<[T]>>) => void;
|
|
95
96
|
onDeviceDisconnected?: () => void;
|
|
96
97
|
onConnectionEvent?: (data: DeviceConnectionEvent) => void;
|
|
98
|
+
/** How results of this kind are reported. */
|
|
99
|
+
protected policyFor: (measurementTypeKey: MeasurementTypeKey) => ResultPolicy;
|
|
97
100
|
/** Reports a sequencer's result; the cast to this device's result type lives here once. */
|
|
98
101
|
protected reportResult: (result: object) => void;
|
|
99
|
-
constructor(device: Device, { deviceName, onError: onErrorCallback, onDeviceStatusChanged: onDeviceStatusChangedCallback, onResult: onResultCallback, onConnectionEvent: onConnectionEventCallback, onDeviceDisconnected: onDeviceDisconnectedCallback, oneReadingPerConnection, resultPolicy, }: CreateDeviceParams<T>);
|
|
102
|
+
constructor(device: Device, { deviceName, onError: onErrorCallback, onDeviceStatusChanged: onDeviceStatusChangedCallback, onResult: onResultCallback, onSeriesValue: onSeriesValueCallback, onConnectionEvent: onConnectionEventCallback, onDeviceDisconnected: onDeviceDisconnectedCallback, oneReadingPerConnection, resultPolicy, }: CreateDeviceParams<T>);
|
|
100
103
|
destroy: () => void;
|
|
101
104
|
/** Stops this device's subscriptions and closes its BLE connection. */
|
|
102
105
|
disconnect: () => Promise<void>;
|
package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-managed-device.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-managed-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"bt-managed-device.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/devices/bt-managed-device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAQxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AAEjF,OAAO,EAAsB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAU7E,8BAAsB,eAAe,CAAC,CAAC,SAAS,SAAS,GAAG,iBAAiB,CAAC,GAAG,CAC/E,YAAW,gBAAgB;aAgIT,MAAM,EAAE,MAAM;IA9HzB,EAAE,EAAE,MAAM,CAAC;IAElB,O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e,CA2GrB;IAEK,OAAO,QAAO,OAAO,CAAC,IAAI,CAAC,CAkBhC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom.device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAElF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAQvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAoBvD,KAAK,mBAAmB,GAAG,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;AACvE,KAAK,YAAY,GAAG,uBAAuB,CAAC,mBAAmB,CAAC,CAAC;AAQjE;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,eAAe,CAAC,cAAc,CAAC;IAC/D,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC;IACnC,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAEnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAyB;IACpD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAiC;IAC9D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAsB;IACzD,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkD;IAC7E,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAkC;IAChE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuC;IACzE,OAAO,CAAC,gBAAgB,CAAmB;gBAGzC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,kBAAkB,CAAC,cAAc,CAAC,EAC1C,UAAU,EAAE,sBAAsB;IA0CpC,uFAAuF;IACvF,OAAO,CAAC,kBAAkB;IAkB1B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAqF3B,OAAO,CAAC,mBAAmB,CAmBzB;IAEF,OAAO,CAAC,mBAAmB,CAMzB;IAEF,OAAO,CAAC,mBAAmB,CAMzB;IAEF,iFAAiF;IACjF,OAAO,CAAC,iBAAiB,CAUvB;IAEF,OAAO,CAAC,YAAY,CACwB;IAE5C,OAAO,CAAC,iBAAiB,CAMvB;IAEF,SAAS,CAAC,eAAe,GAAI,KAAK,MAAM,EAAE,EAAE,MAAM,MAAM,KAAG,OAAO,CAQhE;IAEF;;;;OAIG;IACH,SAAS,CAAC,qBAAqB,GAC7B,MAAM,4BAA4B,CAAC,mBAAmB,CAAC,KACtD,4BAA4B,CAAC,mBAAmB,CAAC,CA2ClD;IAEF,4FAA4F;IAC5F,SAAS,CAAC,2BAA2B,GACnC,OAAO,4BAA4B,CAAC,mBAAmB,CAAC,KACvD,OAAO,CAAS;IAEnB;;;OAGG;IACH,SAAS,CAAC,mBAAmB,CAC3B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,MAAM,EAAE,GACxB,IAAI,GAAG,OAAO;IAMjB,OAAO,CAAC,WAAW;IAmBnB,+EAA+E;IAC/E,SAAS,CAAC,oBAAoB,IAAI,IAAI;IA2CtC,OAAO,CAAC,cAAc;IActB,kFAAkF;IAClF,OAAO,CAAC,oBAAoB;
|
|
1
|
+
{"version":3,"file":"custom.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/custom/custom.device.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AA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.device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"f4.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/f4/f4.device.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"f4.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/f4/f4.device.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAIvD,KAAK,cAAc,GACf,iBAAiB,CAAC,EAAE,GACpB,iBAAiB,CAAC,EAAE,GACpB,iBAAiB,CAAC,aAAa,CAAC;AAEpC,qBAAa,QAAS,SAAQ,eAAe,CAAC,cAAc,CAAC;IAC3D,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAkB;IAEpD,SAAS,CAAC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAEjE;IAEF;;;;;;;OAOG;IACH,SAAS,CAAC,qBAAqB,EAAE,CAC/B,IAAI,EAAE,4BAA4B,CAChC,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,CAC5C,KACE,4BAA4B,CAC/B,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,CAC5C,CAYC;IAEF;;;OAGG;IACH,SAAS,CAAC,gBAAgB,EAAE,MAAM,CAAa;IAE/C,SAAS,CAAC,mBAAmB,CAC3B,aAAa,EAAE,uBAAuB,CACpC,yBAAyB,CAAC,CAAC,cAAc,CAAC,CAAC,CAC5C,GACA,IAAI,GAAG,OAAO;IAkBjB,OAAO,CAAC,sBAAsB;IAc9B,OAAO,CAAC,eAAe;CAiBxB"}
|
package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spo2.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/spo/spo2.device.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spo2.device.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/spo/spo2.device.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBAAa,UAAW,SAAQ,eAAe,CAAC,iBAAiB,CAAC,MAAM,CAAC;IACvE,SAAS,CAAC,aAAa,EAAE,MAAM,IAAI,CAAY;IAE/C,SAAS,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAoB;IACtD,SAAS,CAAC,gBAAgB,SAAU;IACpC,SAAS,CAAC,WAAW,EAAE,iBAAiB,CAA2B;IACnE,OAAO,CAAC,eAAe,CAAgE;IAEvF,SAAS,CAAC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,OAAO,CAmCnD;IAEF,SAAS,CAAC,mBAAmB,CAC3B,aAAa,EAAE,uBAAuB,CACpC,yBAAyB,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CACtD,EACD,eAAe,EAAE,MAAM,EAAE,GACxB,IAAI,GAAG,OAAO;IA2CjB,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,sBAAsB;IAkB9B,OAAO,CAAC,sBAAsB;CAY/B"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BackgroundSyncStorage } from "../types/background-sync";
|
|
2
|
+
import { DeviceData } from "../types/device-data";
|
|
3
|
+
import { DeviceKey } from "../types/device-key";
|
|
4
|
+
import { OpenSeries } from "../types/measurement-series";
|
|
5
|
+
import { ResultCallback } from "../types/result-callback";
|
|
6
|
+
import { Reading } from "./series-slots";
|
|
7
|
+
interface SeriesRecorderOptions {
|
|
8
|
+
/** Where series wait, so one survives the app being closed; they live in memory without it. */
|
|
9
|
+
storage?: BackgroundSyncStorage;
|
|
10
|
+
storageKey?: string;
|
|
11
|
+
now?: () => number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Keeps each device's live values of a kind as a series of one-second slots, for a result policy of `"series"`. A
|
|
15
|
+
* series closes after an hour, or after 15 minutes without a value, and is then handed to the receiver as one
|
|
16
|
+
* result; until there is a receiver it waits, stored. It lives as long as the manager, not a connection, so a
|
|
17
|
+
* device that reconnects within the quarter hour carries on the same series.
|
|
18
|
+
*/
|
|
19
|
+
declare class SeriesRecorder {
|
|
20
|
+
private readonly options;
|
|
21
|
+
private readonly open;
|
|
22
|
+
private closed;
|
|
23
|
+
private readonly listeners;
|
|
24
|
+
private snapshot;
|
|
25
|
+
private receiver;
|
|
26
|
+
private storeTimer;
|
|
27
|
+
private storing;
|
|
28
|
+
private readonly restored;
|
|
29
|
+
constructor(options?: SeriesRecorderOptions);
|
|
30
|
+
/** Records a reading's values, or returns false for a stored record, which isn't part of a series. */
|
|
31
|
+
add: (deviceData: DeviceData, reading: Reading) => boolean;
|
|
32
|
+
/** Closes every series that has gone quiet. `add` does it for its own; call this now and then for the rest. */
|
|
33
|
+
closeIdle: () => void;
|
|
34
|
+
/** Hands closed series to `receiver`, those waiting and those still to close; `undefined` makes them wait. */
|
|
35
|
+
deliverTo: (receiver: ((result: ResultCallback<DeviceKey>) => void) | undefined) => void;
|
|
36
|
+
/** The series being recorded, for display; a new list whenever a value arrives or a series closes. */
|
|
37
|
+
getOpen: () => readonly OpenSeries[];
|
|
38
|
+
subscribe: (listener: () => void) => (() => void);
|
|
39
|
+
/** Stores what is open now and stops the store timer; series carry on after the next start. */
|
|
40
|
+
destroy: () => Promise<void>;
|
|
41
|
+
private now;
|
|
42
|
+
private close;
|
|
43
|
+
private deliver;
|
|
44
|
+
private changed;
|
|
45
|
+
private storeSoon;
|
|
46
|
+
/** Writes one at a time, so an older state never lands after a newer one. */
|
|
47
|
+
private store;
|
|
48
|
+
/**
|
|
49
|
+
* Takes back what an earlier run left: closed series to hand over, and open ones, which close if they went quiet
|
|
50
|
+
* meanwhile. One that a device already reopened since is closed rather than merged.
|
|
51
|
+
*/
|
|
52
|
+
private restore;
|
|
53
|
+
}
|
|
54
|
+
export { SeriesRecorder };
|
|
55
|
+
export type { SeriesRecorderOptions };
|
|
56
|
+
//# sourceMappingURL=series-recorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-recorder.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/services/series-recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAML,OAAO,EAMR,MAAM,gBAAgB,CAAC;AAexB,UAAU,qBAAqB;IAE7B,+FAA+F;IAC/F,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,UAAU,CAAC,EAAE,MA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E,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MeasurementTypeKey } from "@ovok/core";
|
|
2
|
+
import { BackgroundSyncStorage } from "../types/background-sync";
|
|
3
|
+
import { DeviceData } from "../types/device-data";
|
|
4
|
+
import { DeviceKey } from "../types/device-key";
|
|
5
|
+
import { OpenSeries } from "../types/measurement-series";
|
|
6
|
+
import { ResultCallback } from "../types/result-callback";
|
|
7
|
+
/** One slot a second, an hour to a series, and a quarter of an hour without a value ends one. */
|
|
8
|
+
declare const SLOT_MS = 1000;
|
|
9
|
+
declare const MAX_SLOTS = 3600;
|
|
10
|
+
declare const IDLE_CLOSE_MS: number;
|
|
11
|
+
/** Reading properties that describe a reading rather than measure something. */
|
|
12
|
+
declare const NOT_MEASURED: Set<string>;
|
|
13
|
+
type Reading = {
|
|
14
|
+
measurementTypeKey: MeasurementTypeKey;
|
|
15
|
+
recordedAt?: unknown;
|
|
16
|
+
};
|
|
17
|
+
/** A series as it is kept and stored: plain JSON. */
|
|
18
|
+
interface RecordingSeries {
|
|
19
|
+
deviceData: DeviceData;
|
|
20
|
+
measurementTypeKey: MeasurementTypeKey;
|
|
21
|
+
start: number;
|
|
22
|
+
updatedAt: number;
|
|
23
|
+
values: Record<string, Array<number | null>>;
|
|
24
|
+
}
|
|
25
|
+
/** Whether a reading is a live value rather than a stored record dated earlier. */
|
|
26
|
+
declare const isLive: (reading: Reading, now: number) => boolean;
|
|
27
|
+
declare const slotCount: (series: RecordingSeries) => number;
|
|
28
|
+
/** A closed series as a result: its values in `series`, their means in `data`. */
|
|
29
|
+
declare const toResult: (series: RecordingSeries) => ResultCallback<DeviceKey>;
|
|
30
|
+
/** A series being recorded, as screens see it. */
|
|
31
|
+
declare const toOpenSeries: (series: RecordingSeries) => OpenSeries;
|
|
32
|
+
/** What an earlier run stored, or `undefined` when nothing readable was. */
|
|
33
|
+
declare const readStored: <T>(storage: BackgroundSyncStorage, key: string) => Promise<T | undefined>;
|
|
34
|
+
export { IDLE_CLOSE_MS, isLive, MAX_SLOTS, NOT_MEASURED, readStored, slotCount, SLOT_MS, toOpenSeries, toResult, };
|
|
35
|
+
export type { Reading, RecordingSeries };
|
|
36
|
+
//# sourceMappingURL=series-slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"series-slots.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/services/series-slots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAsB,MAAM,0BAA0B,CAAC;AAE9E,iGAAiG;AACjG,QAAA,MAAM,OAAO,OAAQ,CAAC;AACtB,QAAA,MAAM,SAAS,OAAQ,CAAC;AACxB,QAAA,MAAM,aAAa,QAAc,CAAC;AAMlC,gFAAgF;AAChF,QAAA,MAAM,YAAY,aAA0B,CAAC;AAE7C,KAAK,OAAO,GAAG;IAAE,kBAAkB,EAAE,kBAAkB,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhF,qDAAqD;AACrD,UAAU,eAAe;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;CAC9C;AAID,mFAAmF;AACnF,QAAA,MAAM,MAAM,GAAI,SAAS,OAAO,EAAE,KAAK,MAAM,KAAG,OAEmB,CAAC;AAEpE,QAAA,M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