@ovok/native 1.16.1-rc.6 → 1.16.1-rc.7
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-management/components/bt-provider-child-wrapper.js +19 -7
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/index.js +12 -0
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js +27 -1
- package/lib/commonjs/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +39 -0
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +36 -10
- 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.frame-reader.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +69 -25
- 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-command-writer.js +30 -2
- package/lib/commonjs/modules/bt-management/services/devices/bt-command-writer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +1 -1
- 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 +48 -3
- 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-lepu-sequencer.js +6 -2
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +113 -24
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.advertisement.js +19 -2
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.connect-retry.js +32 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.connect-retry.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.delivered-files.js +73 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.delivered-files.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +130 -30
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +103 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +20 -14
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +94 -10
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js +75 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js +113 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js +67 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recorder.js +55 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recorder.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +57 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js +49 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.stored-files.js +46 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.stored-files.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js +10 -4
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.waveform.js +27 -0
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.waveform.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +3 -5
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +17 -8
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +47 -0
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js +58 -32
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/series-recorder.js +27 -5
- package/lib/commonjs/modules/bt-management/services/series-recorder.js.map +1 -1
- package/lib/commonjs/modules/bt-management/types/device-waveform.js +6 -0
- package/lib/commonjs/modules/bt-management/types/device-waveform.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/i-16-from-hex.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +15 -8
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
- package/lib/commonjs/modules/data-sync/constants.js +4 -1
- package/lib/commonjs/modules/data-sync/constants.js.map +1 -1
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js +6 -9
- package/lib/commonjs/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +1 -0
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js +13 -0
- package/lib/commonjs/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js +47 -0
- package/lib/commonjs/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +6 -3
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
- package/lib/commonjs/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +25 -4
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-records-from-health-connect.js +20 -4
- 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 +43 -86
- package/lib/commonjs/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js +6 -5
- package/lib/commonjs/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +15 -15
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-units.js +6 -1
- package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js +64 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js +20 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js +21 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js +59 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-samples.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js +20 -11
- package/lib/commonjs/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js +12 -2
- package/lib/commonjs/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +39 -5
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/connections.js +45 -2
- package/lib/commonjs/modules/next/bluetooth/connections.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/driver.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/errors.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/readings.js +10 -2
- package/lib/commonjs/modules/next/bluetooth/readings.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/runtime.js +37 -1
- package/lib/commonjs/modules/next/bluetooth/runtime.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +19 -7
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/index.js +1 -0
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/bt-management/services/bt-manager.js +27 -1
- package/lib/module/modules/bt-management/services/bt-manager.js.map +1 -1
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +39 -0
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +36 -10
- 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.frame-reader.js +2 -3
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.frame-reader.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +68 -25
- 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-command-writer.js +30 -2
- package/lib/module/modules/bt-management/services/devices/bt-command-writer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +1 -1
- 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 +48 -3
- 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-lepu-sequencer.js +6 -2
- package/lib/module/modules/bt-management/services/devices/custom/custom-lepu-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +113 -24
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.advertisement.js +17 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.advertisement.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.connect-retry.js +28 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.connect-retry.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.delivered-files.js +69 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.delivered-files.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +129 -30
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js +99 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +20 -14
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js +4 -2
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.frame-reader.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +94 -10
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js +72 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js +109 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js +64 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.pulse-wave.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recorder.js +51 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recorder.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js +53 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.recording-watch.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js +45 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.session.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.stored-files.js +42 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.stored-files.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js +10 -4
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.waveform.js +22 -0
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.waveform.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +0 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +3 -6
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +17 -8
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js +44 -0
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js +58 -32
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.oximeters.js.map +1 -1
- package/lib/module/modules/bt-management/services/series-recorder.js +27 -5
- package/lib/module/modules/bt-management/services/series-recorder.js.map +1 -1
- package/lib/module/modules/bt-management/types/device-waveform.js +4 -0
- package/lib/module/modules/bt-management/types/device-waveform.js.map +1 -0
- package/lib/module/modules/bt-management/utils/i-16-from-hex.js.map +1 -1
- package/lib/module/modules/bt-management/utils/le-32-from-hex.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +16 -9
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js +2 -2
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-utils.js.map +1 -1
- package/lib/module/modules/data-sync/constants.js +4 -1
- package/lib/module/modules/data-sync/constants.js.map +1 -1
- package/lib/module/modules/data-sync/hooks/use-listen-changes.js +7 -10
- package/lib/module/modules/data-sync/hooks/use-listen-changes.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/data-processor.js +1 -0
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/types/health-sync-keys.js +13 -0
- package/lib/module/modules/data-sync/types/health-sync-keys.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js +43 -0
- package/lib/module/modules/data-sync/utils/convert-ecg-samples-to-observation.js.map +1 -0
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +6 -3
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js +7 -15
- package/lib/module/modules/data-sync/utils/convert-samples-to-observation.js.map +1 -1
- package/lib/module/modules/data-sync/utils/default-health-coding.js +25 -4
- package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-records-from-health-connect.js +20 -4
- 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 +44 -87
- package/lib/module/modules/data-sync/utils/get-samples-from-health.js.map +1 -1
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js +5 -4
- package/lib/module/modules/data-sync/utils/get-total-samples-count.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +15 -15
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-units.js +6 -1
- package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js +59 -0
- package/lib/module/modules/data-sync/utils/healthkit-daily-statistics.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-data-types.js.map +1 -1
- package/lib/module/modules/data-sync/utils/healthkit-query-options.js +16 -0
- package/lib/module/modules/data-sync/utils/healthkit-query-options.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-sample-source.js +17 -0
- package/lib/module/modules/data-sync/utils/healthkit-sample-source.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-samples.js +52 -0
- package/lib/module/modules/data-sync/utils/healthkit-samples.js.map +1 -0
- package/lib/module/modules/data-sync/utils/healthkit-series.js +19 -10
- package/lib/module/modules/data-sync/utils/healthkit-series.js.map +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js +12 -2
- package/lib/module/modules/next/bluetooth/ble-plx/built-in-devices.js.map +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +39 -5
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/module/modules/next/bluetooth/connections.js +45 -2
- package/lib/module/modules/next/bluetooth/connections.js.map +1 -1
- package/lib/module/modules/next/bluetooth/driver.js.map +1 -1
- package/lib/module/modules/next/bluetooth/errors.js.map +1 -1
- package/lib/module/modules/next/bluetooth/index.js.map +1 -1
- package/lib/module/modules/next/bluetooth/readings.js +10 -2
- package/lib/module/modules/next/bluetooth/readings.js.map +1 -1
- package/lib/module/modules/next/bluetooth/runtime.js +37 -1
- package/lib/module/modules/next/bluetooth/runtime.js.map +1 -1
- package/lib/module/modules/next/bluetooth/web/index.js.map +1 -1
- 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/hooks/runtime-context.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/bt-manager.d.ts +21 -5
- 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/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +4 -0
- 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.frame-reader.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +24 -4
- 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-command-writer.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-command-writer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +23 -3
- 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-lepu-sequencer.d.ts +6 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +20 -0
- 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/lepu/lepu.advertisement.d.ts +8 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts +12 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts +24 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +40 -5
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +6 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +26 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts +42 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts +28 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts +32 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +28 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +4 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.oximeters.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts +6 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/series-recorder.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts +7 -1
- 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/custom-lepu-spec.d.ts +42 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-waveform.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-waveform.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/i-16-from-hex.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/i-16-from-hex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- 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/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/get-data-from-provider-props.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-keys.d.ts +11 -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-ecg-samples-to-observation.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts +1 -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/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +1 -1
- 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 +12 -46
- 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/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +12 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts +13 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/connections.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts +20 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/driver.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/errors.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts +3 -2
- package/lib/typescript/commonjs/src/modules/next/bluetooth/readings.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts +19 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/runtime.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts +33 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/snapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
- 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/hooks/runtime-context.d.ts +4 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/bt-manager.d.ts +21 -5
- 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/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts +4 -0
- 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.frame-reader.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.frame-reader.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +24 -4
- 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-command-writer.d.ts +6 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-command-writer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +23 -3
- 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-lepu-sequencer.d.ts +6 -3
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom-lepu-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +20 -0
- 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/lepu/lepu.advertisement.d.ts +8 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.advertisement.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts +12 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.connect-retry.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts +24 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.delivered-files.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +40 -5
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts +20 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.encryption-handshake.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +6 -3
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts +3 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.frame-reader.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +26 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts +42 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts +28 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts +32 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts +28 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.recording-watch.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts +33 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.stored-files.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +4 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.oximeters.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts +6 -1
- package/lib/typescript/module/src/modules/bt-management/services/series-recorder.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/create-device-params.d.ts +7 -1
- 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/custom-lepu-spec.d.ts +42 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts +17 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-connection-event.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-waveform.d.ts +15 -0
- package/lib/typescript/module/src/modules/bt-management/types/device-waveform.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/i-16-from-hex.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/i-16-from-hex.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/le-32-from-hex.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/constants.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/hooks/use-listen-changes.d.ts.map +1 -1
- 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/types/apple-health-authorization-provider-props.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts +4 -7
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/get-data-from-provider-props.d.ts +3 -1
- package/lib/typescript/module/src/modules/data-sync/types/get-data-from-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-keys.d.ts +11 -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-ecg-samples-to-observation.d.ts +6 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-ecg-samples-to-observation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts +1 -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/convert-samples-to-observation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-records-from-health-connect.d.ts +1 -1
- 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 +12 -46
- 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/get-total-samples-count.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts +10 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-daily-statistics.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts +5 -5
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-data-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts +7 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-query-options.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts +8 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-sample-source.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts +30 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-samples.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/utils/healthkit-series.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/to-core-health-observations.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts +12 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/built-in-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts +2 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/legacy-driver.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts +13 -1
- package/lib/typescript/module/src/modules/next/bluetooth/connections.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts +20 -0
- package/lib/typescript/module/src/modules/next/bluetooth/driver.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/errors.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +2 -1
- package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts +3 -2
- package/lib/typescript/module/src/modules/next/bluetooth/readings.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts +19 -1
- package/lib/typescript/module/src/modules/next/bluetooth/runtime.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts +33 -1
- package/lib/typescript/module/src/modules/next/bluetooth/snapshot.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -1
- package/package.json +8 -3
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MeasurementTypeKey } from "@ovok/core/next";
|
|
2
|
+
import { CaseType } from "../../../types/case-type";
|
|
3
|
+
import { Waveform } from "./lepu.waveform";
|
|
4
|
+
/** A stretch of a recording sent live, before the device's own file supersedes it. */
|
|
5
|
+
interface LiveEcgChunk {
|
|
6
|
+
measurementTypeKey: MeasurementTypeKey.ecg;
|
|
7
|
+
caseType: CaseType.RESULT;
|
|
8
|
+
/** The samples, in millivolts. */
|
|
9
|
+
diagramPoints: number[];
|
|
10
|
+
/** Seconds of samples it holds. */
|
|
11
|
+
duration: number;
|
|
12
|
+
/** When its first sample was taken. */
|
|
13
|
+
recordedAt: Date;
|
|
14
|
+
/** `<recording key>-live-<n>`, the key being the device's file name for the recording. */
|
|
15
|
+
recordingId: string;
|
|
16
|
+
/** Taken live, so the device's file for the same span supersedes it. */
|
|
17
|
+
live: true;
|
|
18
|
+
/** Samples received out of those expected for its span, 0 to 1; below 1 means gaps. */
|
|
19
|
+
coverage: number;
|
|
20
|
+
}
|
|
21
|
+
/** Collects one recording's live samples and hands them over in chunks of five minutes or less. */
|
|
22
|
+
declare class LiveEcgChunks {
|
|
23
|
+
private readonly waveform;
|
|
24
|
+
private readonly onChunk;
|
|
25
|
+
private counts;
|
|
26
|
+
private startedAt;
|
|
27
|
+
private lastAt;
|
|
28
|
+
private recordingKey;
|
|
29
|
+
private index;
|
|
30
|
+
constructor(waveform: Waveform, onChunk: (chunk: LiveEcgChunk) => void);
|
|
31
|
+
/** Adds the samples an answer at `at` carried, `recordedSeconds` into the recording. */
|
|
32
|
+
append: (samples: readonly number[], at: Date, recordedSeconds: number) => void;
|
|
33
|
+
/** Hands over what has been collected; the recording may continue into a further chunk. */
|
|
34
|
+
flush: () => void;
|
|
35
|
+
/** Hands over the rest and forgets the recording, so the next one starts its own chunks. */
|
|
36
|
+
endRecording: () => void;
|
|
37
|
+
private secondsOf;
|
|
38
|
+
private coverage;
|
|
39
|
+
}
|
|
40
|
+
export { LiveEcgChunks };
|
|
41
|
+
export type { LiveEcgChunk };
|
|
42
|
+
//# sourceMappingURL=lepu.live-ecg-chunks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.live-ecg-chunks.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.live-ecg-chunks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAgB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAQzD,sFAAsF;AACtF,UAAU,YAAY;IACpB,kBAAkB,EAAE,kBAAkB,CAAC,GAAG,CAAC;IAC3C,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC;IAE1B,kCAAkC;IAClC,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IAEjB,uCAAuC;IACvC,UAAU,EAAE,IAAI,CAAC;IAEjB,0FAA0F;IAC1F,WAAW,EAAE,MAAM,CAAC;IAEpB,wEAAwE;IACxE,IAAI,EAAE,IAAI,CAAC;IAEX,uFAAuF;IACvF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,mGAAmG;AACnG,cAAM,aAAa;IAQf,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAR1B,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,KAAK,CAAK;gBAGC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI;IAGzD,wFAAwF;IACjF,MAAM,GAAI,SAAS,SAAS,MAAM,EAAE,EAAE,IAAI,IAAI,EAAE,iBAAiB,MAAM,KAAG,IAAI,CASnF;IAEF,2FAA2F;IACpF,KAAK,QAAO,IAAI,CAmBrB;IAEF,4FAA4F;IACrF,YAAY,QAAO,IAAI,CAI5B;IAEF,OAAO,CAAC,SAAS,CAAqE;IAEtF,OAAO,CAAC,QAAQ,CAKd;CACH;AASD,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DeviceData } from "../../../types/device-data";
|
|
2
|
+
import { DeviceKey } from "../../../types/device-key";
|
|
3
|
+
import { MeasurementSeries } from "../../../types/measurement-series";
|
|
4
|
+
import { ResultCallback } from "../../../types/result-callback";
|
|
5
|
+
import { PulseWave } from "./lepu.pulse-wave";
|
|
6
|
+
/**
|
|
7
|
+
* Collects a pulse wave into series of five minutes or less. Each answer's samples are timed back from its
|
|
8
|
+
* arrival, and `null` marks a gap: no sensor contact, or samples that never arrived.
|
|
9
|
+
*/
|
|
10
|
+
declare class PulseWaveChunks {
|
|
11
|
+
private readonly onChunk;
|
|
12
|
+
private chunk;
|
|
13
|
+
constructor(onChunk: (series: MeasurementSeries) => void);
|
|
14
|
+
/** Adds one answer's samples, the last of them taken at `at`. */
|
|
15
|
+
append: (wave: PulseWave, at: Date) => void;
|
|
16
|
+
/** Hands over what has been collected; the next answer starts a new chunk. */
|
|
17
|
+
flush: () => void;
|
|
18
|
+
/** Keeps later samples on time; a gap longer than the chunk has room for ends the chunk instead. */
|
|
19
|
+
private recordGapBefore;
|
|
20
|
+
/** Appends to the open chunk, handing it over when full and carrying the rest into the next. */
|
|
21
|
+
private push;
|
|
22
|
+
/** Reports the chunk from its first recorded sample to its last; one with none is dropped. */
|
|
23
|
+
private handOver;
|
|
24
|
+
}
|
|
25
|
+
/** A chunk as a result, with an id the one-second series of the same device cannot share. */
|
|
26
|
+
declare const pulseWaveResult: (deviceData: DeviceData, series: MeasurementSeries) => ResultCallback<DeviceKey>;
|
|
27
|
+
export { PulseWaveChunks, pulseWaveResult };
|
|
28
|
+
//# sourceMappingURL=lepu.pulse-wave-chunks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.pulse-wave-chunks.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.pulse-wave-chunks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAsB,MAAM,gCAAgC,CAAC;AAEpF,OAAO,EAAwB,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAoBpE;;;GAGG;AACH,cAAM,eAAe;IAGA,OAAO,CAAC,QAAQ,CAAC,OAAO;IAF3C,OAAO,CAAC,KAAK,CAAwB;gBAED,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI;IAEhF,iEAAiE;IAC1D,MAAM,GAAI,MAAM,SAAS,EAAE,IAAI,IAAI,KAAG,IAAI,CAU/C;IAEF,8EAA8E;IACvE,KAAK,QAAO,IAAI,CAMrB;IAEF,oGAAoG;IACpG,OAAO,CAAC,eAAe,CAerB;IAEF,gGAAgG;IAChG,OAAO,CAAC,IAAI,CAkBV;IAEF,8FAA8F;IAC9F,OAAO,CAAC,QAAQ,CAcd;CACH;AAED,6FAA6F;AAC7F,QAAA,MAAM,eAAe,GAAI,YAAY,UAAU,EAAE,QAAQ,iBAAiB,KAAG,cAAc,CAAC,SAAS,CAQnG,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The legacy oxygen protocol's realtime request answered with the pulse wave as well as the parameters. */
|
|
2
|
+
declare const PULSE_WAVE_COMMAND = 27;
|
|
3
|
+
declare const PULSE_WAVE_REQUEST: readonly number[];
|
|
4
|
+
declare const PULSE_WAVE_PERIOD_MS = 8;
|
|
5
|
+
/** The pulse wave one answer carries: raw, unitless and inverted, so systolic peaks are minima. */
|
|
6
|
+
interface PulseWave {
|
|
7
|
+
/** Whether the sensor had contact; without it the samples are not the wave. */
|
|
8
|
+
leadOn: boolean;
|
|
9
|
+
/** Samples taken since the previous answer, oldest first. */
|
|
10
|
+
samples: number[];
|
|
11
|
+
}
|
|
12
|
+
/** The pulse wave in a realtime wave answer; `undefined` for one sample, or fewer than it counts. */
|
|
13
|
+
declare const readPulseWave: (frame: readonly string[]) => PulseWave | undefined;
|
|
14
|
+
export { PULSE_WAVE_COMMAND, PULSE_WAVE_PERIOD_MS, PULSE_WAVE_REQUEST, readPulseWave };
|
|
15
|
+
export type { PulseWave };
|
|
16
|
+
//# sourceMappingURL=lepu.pulse-wave.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.pulse-wave.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.pulse-wave.ts"],"names":[],"mappings":"AAGA,4GAA4G;AAC5G,QAAA,MAAM,kBAAkB,KAAO,CAAC;AAIhC,QAAA,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAAkB,CAAC;AAC5D,QAAA,MAAM,oBAAoB,IAAI,CAAC;AAkB/B,mGAAmG;AACnG,UAAU,SAAS;IAEjB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAEhB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAmBD,qGAAqG;AACrG,QAAA,MAAM,aAAa,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,SAAS,GAAG,SAe7D,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,aAAa,EAAE,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.recorder.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
import { DeviceConnectionEvent } from "../../../types/device-connection-event";
|
|
3
|
+
import { LiveEcgChunk } from "./lepu.live-ecg-chunks";
|
|
4
|
+
type RecordingStatus = NonNullable<CustomLepuSpec["recordingStatus"]>;
|
|
5
|
+
interface LepuRecorderCallbacks {
|
|
6
|
+
onRecordingChanged: (recording: DeviceConnectionEvent["recording"]) => void;
|
|
7
|
+
/** The samples of one answer while recording, for display. */
|
|
8
|
+
onSamples: (samples: readonly number[], at: Date) => void;
|
|
9
|
+
/** A chunk of the recording, to be saved. */
|
|
10
|
+
onChunk: (chunk: LiveEcgChunk) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Follows a recorder's open recording through its poll answers: reports its state, feeds the live
|
|
14
|
+
* trace while it records, and hands its samples over in chunks.
|
|
15
|
+
*/
|
|
16
|
+
declare class LepuRecorder {
|
|
17
|
+
private readonly status;
|
|
18
|
+
private readonly callbacks;
|
|
19
|
+
private readonly watch;
|
|
20
|
+
private readonly chunks;
|
|
21
|
+
constructor(status: RecordingStatus, callbacks: LepuRecorderCallbacks);
|
|
22
|
+
/** Reads one poll answer; true when it is the first in the saved state, so the files are read. */
|
|
23
|
+
observe: (pollAnswer: readonly string[]) => boolean;
|
|
24
|
+
isOpen: () => boolean;
|
|
25
|
+
/** Whether samples are being recorded, so every answer's samples count. */
|
|
26
|
+
isRecording: () => boolean;
|
|
27
|
+
/** Hands over what is collected, for a connection that is ending. */
|
|
28
|
+
flush: () => void;
|
|
29
|
+
private record;
|
|
30
|
+
}
|
|
31
|
+
export { LepuRecorder };
|
|
32
|
+
//# sourceMappingURL=lepu.recorder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.recorder.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.recorder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,OAAO,EAAE,YAAY,EAAiB,MAAM,wBAAwB,CAAC;AAIrE,KAAK,eAAe,GAAG,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEtE,UAAU,qBAAqB;IAC7B,kBAAkB,EAAE,CAAC,SAAS,EAAE,qBAAqB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAE5E,8DAA8D;IAC9D,SAAS,EAAE,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,KAAK,IAAI,CAAC;IAE1D,6CAA6C;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,cAAM,YAAY;IAKd,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAL5B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAqB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;gBAGhC,MAAM,EAAE,eAAe,EACvB,SAAS,EAAE,qBAAqB;IAMnD,kGAAkG;IAC3F,OAAO,GAAI,YAAY,SAAS,MAAM,EAAE,KAAG,OAAO,CAYvD;IAEK,MAAM,QAAO,OAAO,CAAwB;IAEnD,2EAA2E;IACpE,WAAW,QAAO,OAAO,CAA6B;IAE7D,qEAAqE;IAC9D,KAAK,QAAO,IAAI,CAAyB;IAEhD,OAAO,CAAC,MAAM,CAcZ;CACH;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
import { DeviceConnectionEvent } from "../../../types/device-connection-event";
|
|
3
|
+
type RecordingStatus = NonNullable<CustomLepuSpec["recordingStatus"]>;
|
|
4
|
+
type Recording = NonNullable<DeviceConnectionEvent["recording"]>;
|
|
5
|
+
/** Follows a recorder's open recording through its poll answers. */
|
|
6
|
+
declare class LepuRecordingWatch {
|
|
7
|
+
private readonly status;
|
|
8
|
+
private readonly onRecordingChanged;
|
|
9
|
+
private state;
|
|
10
|
+
private seconds;
|
|
11
|
+
private leadOffSince;
|
|
12
|
+
private reported;
|
|
13
|
+
constructor(status: RecordingStatus, onRecordingChanged: (recording: Recording | undefined) => void);
|
|
14
|
+
/** Reads one poll answer; true when it is the first in the saved state, so the files are read. */
|
|
15
|
+
observe: (pollAnswer: readonly string[]) => boolean;
|
|
16
|
+
/** Whether a recording is open, so that stopping it means something. */
|
|
17
|
+
isOpen: () => boolean;
|
|
18
|
+
/** Whether the electrodes have contact and samples are being recorded. */
|
|
19
|
+
isRecording: () => boolean;
|
|
20
|
+
/** Seconds recorded, as of the last answer. */
|
|
21
|
+
recordedSeconds: () => number;
|
|
22
|
+
private recordingIn;
|
|
23
|
+
private isLeadOff;
|
|
24
|
+
/** Reports a change in what the app would act on, not every tick of the seconds. */
|
|
25
|
+
private report;
|
|
26
|
+
}
|
|
27
|
+
export { LepuRecordingWatch };
|
|
28
|
+
//# sourceMappingURL=lepu.recording-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.recording-watch.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.recording-watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAO/E,KAAK,eAAe,GAAG,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAEtE,KAAK,SAAS,GAAG,WAAW,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,CAAC;AAEjE,oEAAoE;AACpE,cAAM,kBAAkB;IAOpB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAPrC,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,QAAQ,CAAqB;gBAGlB,MAAM,EAAE,eAAe,EACvB,kBAAkB,EAAE,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,KAAK,IAAI;IAGjF,kGAAkG;IAC3F,OAAO,GAAI,YAAY,SAAS,MAAM,EAAE,KAAG,OAAO,CASvD;IAEF,wEAAwE;IACjE,MAAM,QAAO,OAAO,CAA2C;IAEtE,0EAA0E;IACnE,WAAW,QAAO,OAAO,CAA8C;IAE9E,+CAA+C;IACxC,eAAe,QAAO,MAAM,CAAiB;IAEpD,OAAO,CAAC,WAAW,CAOH;IAEhB,OAAO,CAAC,SAAS,CAA0D;IAE3E,oFAAoF;IACpF,OAAO,CAAC,MAAM,CAYZ;CACH;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.session.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One connection's AES key, from the moment the device hands it over in the handshake.
|
|
3
|
+
*
|
|
4
|
+
* Requests leave encrypted and replies reach every parser in plain text. Without a key, and
|
|
5
|
+
* for an empty payload, frames pass through unchanged, as the vendor's own client does.
|
|
6
|
+
*/
|
|
7
|
+
declare class LepuSession {
|
|
8
|
+
private key;
|
|
9
|
+
begin: (key: readonly number[]) => void;
|
|
10
|
+
end: () => void;
|
|
11
|
+
encryptFrame: (frame: readonly string[]) => string[];
|
|
12
|
+
/** The frame in plain text, or `undefined` when its payload does not decrypt. */
|
|
13
|
+
decryptFrame: (frame: readonly string[]) => string[] | undefined;
|
|
14
|
+
private withPayload;
|
|
15
|
+
}
|
|
16
|
+
export { LepuSession };
|
|
17
|
+
//# sourceMappingURL=lepu.session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.session.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,cAAM,WAAW;IACf,OAAO,CAAC,GAAG,CAAgC;IAEpC,KAAK,GAAI,KAAK,SAAS,MAAM,EAAE,KAAG,IAAI,CAE3C;IAEK,GAAG,QAAO,IAAI,CAEnB;IAEK,YAAY,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,MAAM,EAAE,CACE;IAE5D,iFAAiF;IAC1E,YAAY,GAAI,OAAO,SAAS,MAAM,EAAE,KAAG,MAAM,EAAE,GAAG,SAAS,CACxB;IAE9C,OAAO,CAAC,WAAW,CAajB;CACH;AAiBD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DeviceCommand } from "../../../types/device-command";
|
|
2
|
+
import { LepuDeliveredFiles } from "./lepu.delivered-files";
|
|
3
|
+
import { LepuFile, LepuFileTransfer, LepuFileTransferParams } from "./lepu.file-transfer";
|
|
4
|
+
type LepuStoredFilesParams = Omit<LepuFileTransferParams, "afterTransfer" | "onFileList" | "onFile"> & {
|
|
5
|
+
/** Called with each file read; call `delivered` once the app took its reading. */
|
|
6
|
+
onFile: (file: LepuFile, delivered: () => void) => void;
|
|
7
|
+
/** The files whose readings the app took, on this connection or an earlier one. */
|
|
8
|
+
deliveredFiles?: LepuDeliveredFiles;
|
|
9
|
+
};
|
|
10
|
+
type AfterTransfer = () => readonly DeviceCommand[];
|
|
11
|
+
/**
|
|
12
|
+
* The files a Lepu device holds, read only when asked.
|
|
13
|
+
*
|
|
14
|
+
* On connect their names are only listed, so a later `readNew` fetches what the device stored
|
|
15
|
+
* since; `readAll` is the app's explicit history sync. A file read once on a connection is not
|
|
16
|
+
* read again on it, and one whose reading the app took is not read again at all.
|
|
17
|
+
*/
|
|
18
|
+
declare class LepuStoredFiles {
|
|
19
|
+
private readonly params;
|
|
20
|
+
private readonly listedOnConnect;
|
|
21
|
+
private readonly read;
|
|
22
|
+
constructor(params: LepuStoredFilesParams);
|
|
23
|
+
/** Lists the files without opening any. */
|
|
24
|
+
listExisting: (afterTransfer: AfterTransfer) => LepuFileTransfer;
|
|
25
|
+
/** Reads the files stored since the connection listed them. */
|
|
26
|
+
readNew: (afterTransfer: AfterTransfer) => LepuFileTransfer;
|
|
27
|
+
/** Reads every stored file not read yet. */
|
|
28
|
+
readAll: (afterTransfer: AfterTransfer) => LepuFileTransfer;
|
|
29
|
+
private isUnread;
|
|
30
|
+
private transfer;
|
|
31
|
+
}
|
|
32
|
+
export { LepuStoredFiles };
|
|
33
|
+
//# sourceMappingURL=lepu.stored-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.stored-files.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.stored-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAE1F,KAAK,qBAAqB,GAAG,IAAI,CAC/B,sBAAsB,EACtB,eAAe,GAAG,YAAY,GAAG,QAAQ,CAC1C,GAAG;IAEF,kFAAkF;IAClF,MAAM,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAExD,mFAAmF;IACnF,cAAc,CAAC,EAAE,kBAAkB,CAAC;CACrC,CAAC;AAEF,KAAK,aAAa,GAAG,MAAM,SAAS,aAAa,EAAE,CAAC;AAEpD;;;;;;GAMG;AACH,cAAM,eAAe;IAIA,OAAO,CAAC,QAAQ,CAAC,MAAM;IAH1C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAqB;IACrD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;gBAEN,MAAM,EAAE,qBAAqB;IAEjE,2CAA2C;IACpC,YAAY,GAAI,eAAe,aAAa,KAAG,gBAAgB,CAGlE;IAEJ,+DAA+D;IACxD,OAAO,GAAI,eAAe,aAAa,KAAG,gBAAgB,CAI7D;IAEJ,4CAA4C;IACrC,OAAO,GAAI,eAAe,aAAa,KAAG,gBAAgB,CACnB;IAE9C,OAAO,CAAC,QAAQ,CAG2B;IAE3C,OAAO,CAAC,QAAQ,CAiBX;CACN;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts
CHANGED
|
@@ -103,6 +103,8 @@ interface LepuDeviceParams {
|
|
|
103
103
|
};
|
|
104
104
|
/** Sends the Viatom oximeter clock command before INFO. */
|
|
105
105
|
setClockBeforeInfo?: boolean;
|
|
106
|
+
/** Polls a legacy oximeter's pulse wave in place of its realtime parameters, when it serves one. */
|
|
107
|
+
pulseWave?: boolean;
|
|
106
108
|
/** Uses write-without-response, as the Viatom oximeter characteristic requires. */
|
|
107
109
|
writeWithoutResponse?: boolean;
|
|
108
110
|
/** Stored-file transfer protocol the product uses. */
|
|
@@ -129,6 +131,8 @@ interface LepuDeviceParams {
|
|
|
129
131
|
pollCommand?: number;
|
|
130
132
|
/** Delay before each realtime poll, for devices with a fixed polling cadence. */
|
|
131
133
|
pollIntervalMs?: number;
|
|
134
|
+
/** How a recorder reports its open recording; see `CustomLepuSpec`. */
|
|
135
|
+
recordingStatus?: CustomLepuSpec["recordingStatus"];
|
|
132
136
|
/**
|
|
133
137
|
* Shortest frame any declared case may be read from. The seven-byte header and the
|
|
134
138
|
* trailing checksum are part of it, so a one-byte payload is nine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lepu.transports.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.transports.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"lepu.transports.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.transports.ts"],"names":[],"mappings":"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"}
|
package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.waveform.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
type Waveform = NonNullable<NonNullable<CustomLepuSpec["recordingStatus"]>["waveform"]>;
|
|
3
|
+
/** The raw sample counts a poll answer carries, never more than the frame holds. */
|
|
4
|
+
declare const waveformSamples: (pollAnswer: readonly string[], waveform: Waveform) => number[];
|
|
5
|
+
/** One count in millivolts; the no-signal marker reads as 0. */
|
|
6
|
+
declare const millivoltsOf: (count: number, waveform: Waveform) => number;
|
|
7
|
+
export { millivoltsOf, waveformSamples };
|
|
8
|
+
export type { Waveform };
|
|
9
|
+
//# sourceMappingURL=lepu.waveform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lepu.waveform.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.waveform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,KAAK,QAAQ,GAAG,WAAW,CAAC,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAMxF,oFAAoF;AACpF,QAAA,MAAM,eAAe,GAAI,YAAY,SAAS,MAAM,EAAE,EAAE,UAAU,QAAQ,KAAG,MAAM,EAOlF,CAAC;AAEF,gEAAgE;AAChE,QAAA,MAAM,YAAY,GAAI,OAAO,MAAM,EAAE,UAAU,QAAQ,KAAG,MACkB,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AACzC,YAAY,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AAgEjD,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,
|
|
1
|
+
{"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AAgEjD,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAiCF,CAAC;AAEF,gDAAgD;AAChD,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,mFAAmF;AACnF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,gEAAgE;AAChE,QAAA,MAAM,aAAa,GAAI,QAAQ,cAAc,KAAG,sBACZ,CAAC;AAQrC,gGAAgG;AAChG,QAAA,MAAM,YAAY,GAChB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAoCA,CAAC;AAEJ;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAkBrC,CAAC;AAEF,2DAA2D;AAC3D,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAQrC,CAAC;AAEF,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,eAAe,EACf,YAAY,EACZ,eAAe,GAChB,CAAC"}
|
|
@@ -15,7 +15,7 @@ interface ViatomEcgRecording {
|
|
|
15
15
|
* Decodes an ER1/ER2 recording. A file whose waveform does not last as long as its tail
|
|
16
16
|
* records is returned empty, because that file is in a format this decoder does not read.
|
|
17
17
|
*/
|
|
18
|
-
declare const decodeViatomEcgRecording: (
|
|
18
|
+
declare const decodeViatomEcgRecording: (bytes: Uint8Array) => ViatomEcgRecording;
|
|
19
19
|
export type { ViatomEcgRecording };
|
|
20
20
|
export { decodeViatomEcgRecording, recordedAtFromViatomFileName, VIATOM_ECG_MILLIVOLTS_PER_COUNT, VIATOM_ECG_SAMPLE_RATE_HZ, };
|
|
21
21
|
//# sourceMappingURL=viatom.ecg-files.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.ecg-files.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-files.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"viatom.ecg-files.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-files.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,QAAA,MAAM,yBAAyB,MAAM,CAAC;AAEtC,kDAAkD;AAClD,QAAA,MAAM,+BAA+B,WAAW,CAAC;AAsBjD,0EAA0E;AAC1E,QAAA,MAAM,4BAA4B,GAAI,MAAM,MAAM,KAAG,IAAI,GAAG,SA0B3D,CAAC;AAiBF,mCAAmC;AACnC,UAAU,kBAAkB;IAE1B,sCAAsC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAsFD;;;GAGG;AACH,QAAA,MAAM,wBAAwB,GAAI,OAAO,UAAU,KAAG,kBAcrD,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAEnC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,GAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAiEjF,UAAU,eAAe;IAEvB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AA2DD,uFAAuF;AACvF,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ,6EAA6E;AAC7E,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBAUA,CAAC;AAEJ,6CAA6C;AAC7C,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAWrC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAUrC,CAAC;AAKF,8EAA8E;AAC9E,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAAyB,CAAC;AAEhE,OAAO,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomLepuSpec } from "../../../types/custom-lepu-spec";
|
|
2
|
+
/** The run status, with the current state in its low nibble. */
|
|
3
|
+
declare const RUN_STATUS_BYTE = 15;
|
|
4
|
+
declare const RECORDING_STATE = 2;
|
|
5
|
+
/** How an ER recorder reports its open recording in the realtime answer. */
|
|
6
|
+
declare const viatomRecordingStatus: (advertisedName: string) => NonNullable<CustomLepuSpec["recordingStatus"]>;
|
|
7
|
+
export { RECORDING_STATE, RUN_STATUS_BYTE, viatomRecordingStatus };
|
|
8
|
+
//# sourceMappingURL=viatom.ecg-recording-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viatom.ecg-recording-status.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recording-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAIjE,gEAAgE;AAChE,QAAA,MAAM,eAAe,KAAK,CAAC;AAC3B,QAAA,MAAM,eAAe,IAAI,CAAC;AAoB1B,4EAA4E;AAC5E,QAAA,MAAM,qBAAqB,GACzB,gBAAgB,MAAM,KACrB,WAAW,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAgB9C,CAAC;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viatom.oximeters.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.oximeters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"viatom.oximeters.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.oximeters.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAmIjF;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAMxC,CAAC;AAEF,UAAU,oBAAoB;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,cAAc,GAClB,gBAAgB,MAAM,EACtB,QAAQ,oBAAoB,KAC3B,sBAiCF,CAAC;AAEF,UAAU,iBAAiB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,sEAAsE;AACtE,QAAA,MAAM,kBAAkB,GACtB,gBAAgB,MAAM,EACtB,SAAQ,iBAAsB,KAC7B,sBAcC,CAAC;AAEL;;;;;;;;GAQG;AACH,QAAA,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAgC3C,CAAC;AAEF,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACnB,CAAC"}
|
|
@@ -15,12 +15,15 @@ interface SeriesRecorderOptions {
|
|
|
15
15
|
/**
|
|
16
16
|
* Keeps each device's live values of a kind as a series of one-second slots, for a result policy of `"series"`. A
|
|
17
17
|
* series closes when its device disconnects, after an hour, or after 15 minutes without a value, and is then handed
|
|
18
|
-
* to the receiver as one result; until there is a receiver it waits, stored.
|
|
18
|
+
* to the receiver as one result; until there is a receiver it waits, stored. A series a device recorded itself, such
|
|
19
|
+
* as an oximeter's pulse wave, goes to the same receiver.
|
|
19
20
|
*/
|
|
20
21
|
declare class SeriesRecorder {
|
|
21
22
|
private readonly options;
|
|
22
23
|
private readonly open;
|
|
23
24
|
private closed;
|
|
25
|
+
/** Recorded by a device and waiting for a receiver; kept in memory, as a wave chunk is too large to restore often. */
|
|
26
|
+
private finished;
|
|
24
27
|
private readonly listeners;
|
|
25
28
|
private snapshot;
|
|
26
29
|
private receiver;
|
|
@@ -34,6 +37,8 @@ declare class SeriesRecorder {
|
|
|
34
37
|
closeIdle: () => void;
|
|
35
38
|
/** Closes a device's series as it disconnects, so they are saved now rather than once they go quiet. */
|
|
36
39
|
closeDevice: (deviceId: string) => void;
|
|
40
|
+
/** Hands over a series a device recorded itself, for the signed-in account, now or once there is a receiver. */
|
|
41
|
+
addFinished: (result: ResultCallback<DeviceKey>) => void;
|
|
37
42
|
/** Hands closed series to `receiver`, those waiting and those still to close; `undefined` makes them wait. */
|
|
38
43
|
deliverTo: (receiver: ((result: ResultCallback<DeviceKey>) => void) | undefined) => void;
|
|
39
44
|
/** The series being recorded, for display; a new list whenever a value arrives or a series closes. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series-recorder.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/services/series-recorder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"series-recorder.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/services/series-recorder.ts"],"names":[],"mappings":"AACA,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;AAcxB,UAAU,qBAAqB;IAE7B,+FAA+F;IAC/F,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IAEnB,qHAAqH;IACrH,WAAW,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CACxC;AAED;;;;;GAKG;AACH,cAAM,cAAc;IAaC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAZ3C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAsC;IAC3D,OAAO,CAAC,MAAM,CAAyB;IAEvC,sHAAsH;IACtH,OAAO,CAAC,QAAQ,CAAmC;IACnD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAyB;IACnD,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,QAAQ,CAA4D;IAC5E,OAAO,CAAC,UAAU,CAA4C;IAC9D,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;gBAEL,OAAO,GAAE,qBAA0B;IAIvE,sGAAsG;IAC/F,GAAG,GAAI,YAAY,UAAU,EAAE,SAAS,OAAO,KAAG,OAAO,CAqD9D;IAEF,yHAAyH;IAClH,SAAS,QAAO,IAAI,CAIzB;IAEF,wGAAwG;IACjG,WAAW,GAAI,UAAU,MAAM,KAAG,IAAI,CAAmE;IAEhH,gHAAgH;IACzG,WAAW,GAAI,QAAQ,cAAc,CAAC,SAAS,CAAC,KAAG,IAAI,CAK5D;IAEF,8GAA8G;IACvG,SAAS,GAAI,UAAU,CAAC,CAAC,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,KAAG,IAAI,CAG5F;IAEF,sGAAsG;IAC/F,OAAO,QAAO,SAAS,UAAU,EAAE,CAAkB;IAErD,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAMrD;IAEF,+FAA+F;IACxF,OAAO,QAAO,OAAO,CAAC,IAAI,CAAC,CAKhC;IAEF,OAAO,CAAC,GAAG,CAAoD;IAE/D,OAAO,CAAC,UAAU,CAEhB;IAEF,OAAO,CAAC,KAAK,CAYX;IAEF,OAAO,CAAC,OAAO,CAiBb;IAEF,OAAO,CAAC,OAAO,CAGb;IAEF,OAAO,CAAC,SAAS,CASf;IAEF,6EAA6E;IAC7E,OAAO,CAAC,KAAK,CAiBX;IAEF,iHAAiH;IACjH,OAAO,CAAC,OAAO,CAqBb;CACH;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -6,6 +6,7 @@ import { DeviceConnectionEvent } from "./device-connection-event";
|
|
|
6
6
|
import { DeviceData } from "./device-data";
|
|
7
7
|
import { DeviceKey } from "./device-key";
|
|
8
8
|
import { DeviceStatusChangeCallback } from "./device-status-change-callback";
|
|
9
|
+
import { DeviceWaveform } from "./device-waveform";
|
|
9
10
|
import { ErrorCallback } from "./error-callback";
|
|
10
11
|
import { ResultCallback } from "./result-callback";
|
|
11
12
|
import { DeviceResultPolicy } from "./result-policy";
|
|
@@ -14,14 +15,19 @@ export interface CreateDeviceParams<T extends DeviceKey> {
|
|
|
14
15
|
deviceName: T;
|
|
15
16
|
onError?: (data: ErrorCallback) => void;
|
|
16
17
|
onDeviceStatusChanged?: (data: DeviceStatusChangeCallback) => void;
|
|
17
|
-
|
|
18
|
+
/** Takes a result; a returned promise resolves once it is queued or saved. */
|
|
19
|
+
onResult?: (data: ResultCallback<T>) => void | Promise<unknown>;
|
|
18
20
|
/**
|
|
19
21
|
* Takes a value of a kind its result policy keeps as a series. Returns false for a reading dated earlier (a stored
|
|
20
22
|
* record), which is then reported on its own.
|
|
21
23
|
*/
|
|
22
24
|
onSeriesValue?: (deviceData: DeviceData, reading: Measurement) => boolean;
|
|
25
|
+
/** Takes a series the device recorded itself, such as an oximeter's pulse wave, to hand over with the others. */
|
|
26
|
+
onFinishedSeries?: (result: ResultCallback<DeviceKey>) => void;
|
|
23
27
|
hasResultReceiver?: () => boolean;
|
|
24
28
|
onConnectionEvent?: (data: DeviceConnectionEvent) => void;
|
|
29
|
+
/** Called with the ECG samples of each realtime answer while a recorder records; for display only. */
|
|
30
|
+
onWaveform?: (waveform: DeviceWaveform) => void;
|
|
25
31
|
onDeviceDisconnected?: () => void;
|
|
26
32
|
oneReadingPerConnection?: boolean;
|
|
27
33
|
deliveredEcgFileNames?: readonly string[];
|
package/lib/typescript/commonjs/src/modules/bt-management/types/create-device-params.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-device-params.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/create-device-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,SAAS;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"create-device-params.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/create-device-params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,SAAS;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IAEnE,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEhE;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC;IAE1E,iHAAiH;IACjH,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC/D,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC;IAClC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAE1D,sGAAsG;IACtG,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,qBAAqB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAEvC,sHAAsH;IACtH,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAE5C,oFAAoF;IACpF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B"}
|
|
@@ -33,7 +33,10 @@ export interface CustomLepuSpec {
|
|
|
33
33
|
requestStartByte?: string;
|
|
34
34
|
/** Selects the OxyII service and framing when the advertisement says protocol V2. */
|
|
35
35
|
manufacturerDataProtocol?: "viatom-oxygen";
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* Manufacturer-data byte indexes whose high nibble of 2 means encryption is required, for
|
|
38
|
+
* protocols without the handshake; the standard protocol runs the handshake instead.
|
|
39
|
+
*/
|
|
37
40
|
rejectEncryptionAtBytes?: number[];
|
|
38
41
|
/** Where commands are written. The service must be one this declaration also monitors. */
|
|
39
42
|
write: {
|
|
@@ -61,9 +64,47 @@ export interface CustomLepuSpec {
|
|
|
61
64
|
pollCommand?: number;
|
|
62
65
|
/** Delay before each realtime poll, for devices with a fixed polling cadence. */
|
|
63
66
|
pollIntervalMs?: number;
|
|
67
|
+
/**
|
|
68
|
+
* How a recorder reports its open recording in each poll answer. Entering the saved state
|
|
69
|
+
* reads the stored ECG files again, and the recording can be stopped on request.
|
|
70
|
+
*/
|
|
71
|
+
recordingStatus?: {
|
|
72
|
+
/** The run-status byte's index in the poll answer, header included; its low nibble is the state. */
|
|
73
|
+
byteIndex: number;
|
|
74
|
+
/** Where the seconds recorded so far sit in the poll answer, u32 little-endian. */
|
|
75
|
+
secondsByteIndex: number;
|
|
76
|
+
/** Low-nibble state while recording. */
|
|
77
|
+
recordingState: number;
|
|
78
|
+
/** Low-nibble state while the electrodes have no contact and the recording stays open. */
|
|
79
|
+
leadOffState: number;
|
|
80
|
+
/** Low-nibble state once the recording has been stored. */
|
|
81
|
+
savedState: number;
|
|
82
|
+
/** The shortest recording the device stores when it is stopped. */
|
|
83
|
+
minimumStoredSeconds: number;
|
|
84
|
+
/** The opcode that stops the recording, storing it when it is long enough. */
|
|
85
|
+
stopCommand: number;
|
|
86
|
+
/** Where a poll answer carries the ECG samples taken since the last one, for live display and chunks. */
|
|
87
|
+
waveform?: {
|
|
88
|
+
/** Index of the u16 little-endian sample count, header included; int16 samples follow it. */
|
|
89
|
+
countByteIndex: number;
|
|
90
|
+
/** Samples per second. */
|
|
91
|
+
sampleRateHz: number;
|
|
92
|
+
/** Millivolts per sample count. */
|
|
93
|
+
millivoltsPerCount: number;
|
|
94
|
+
/** The count that means no signal, stored as 0 mV. */
|
|
95
|
+
noSignalCount?: number;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
64
98
|
/** Sends the command through the write-without-response characteristic. */
|
|
65
99
|
writeWithoutResponse?: boolean;
|
|
66
100
|
/** Sends the Viatom oximeter clock command before the information request. */
|
|
67
101
|
setClockBeforeInfo?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Asks a `viatom-oxygen` oximeter for its pulse wave (`0x1B`, 125 Hz) and, unless its first answer shows it has none,
|
|
104
|
+
* polls that instead of realtime parameters. The wave is recorded only for a device whose `bloodOxygenPulseRate` result
|
|
105
|
+
* policy is `"series"`, as series of up to five minutes. Its answer carries saturation and pulse rate at the same
|
|
106
|
+
* offsets as realtime parameters, so declare cases for it too.
|
|
107
|
+
*/
|
|
108
|
+
pulseWave?: boolean;
|
|
68
109
|
}
|
|
69
110
|
//# sourceMappingURL=custom-lepu-spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAElC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAErC;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,GAAG,WAAW,CAAC;IAEnD;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,qFAAqF;IACrF,wBAAwB,CAAC,EAAE,eAAe,CAAC;IAE3C
|
|
1
|
+
{"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAElC,8FAA8F;IAC9F,YAAY,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAErC;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,GAAG,WAAW,CAAC;IAEnD;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,qFAAqF;IACrF,wBAAwB,CAAC,EAAE,eAAe,CAAC;IAE3C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnC,0FAA0F;IAC1F,KAAK,EAAE;QAEL,4DAA4D;QAC5D,WAAW,EAAE,MAAM,CAAC;QAEpB,0DAA0D;QAC1D,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iFAAiF;IACjF,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,eAAe,CAAC,EAAE;QAEhB,oGAAoG;QACpG,SAAS,EAAE,MAAM,CAAC;QAElB,mFAAmF;QACnF,gBAAgB,EAAE,MAAM,CAAC;QAEzB,wCAAwC;QACxC,cAAc,EAAE,MAAM,CAAC;QAEvB,0FAA0F;QAC1F,YAAY,EAAE,MAAM,CAAC;QAErB,2DAA2D;QAC3D,UAAU,EAAE,MAAM,CAAC;QAEnB,mEAAmE;QACnE,oBAAoB,EAAE,MAAM,CAAC;QAE7B,8EAA8E;QAC9E,WAAW,EAAE,MAAM,CAAC;QAEpB,yGAAyG;QACzG,QAAQ,CAAC,EAAE;YAET,6FAA6F;YAC7F,cAAc,EAAE,MAAM,CAAC;YAEvB,0BAA0B;YAC1B,YAAY,EAAE,MAAM,CAAC;YAErB,mCAAmC;YACnC,kBAAkB,EAAE,MAAM,CAAC;YAE3B,sDAAsD;YACtD,aAAa,CAAC,EAAE,MAAM,CAAC;SACxB,CAAC;KACH,CAAC;IAEF,2EAA2E;IAC3E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeviceData } from "./device-data";
|
|
2
2
|
/** Kind of connection lifecycle event. */
|
|
3
|
-
export type DeviceConnectionEventKind = "pairing" | "connected" | "bonded" | "history-download" | "battery" | "device-identified" | "clock-synchronized";
|
|
3
|
+
export type DeviceConnectionEventKind = "pairing" | "connected" | "bonded" | "history-download" | "battery" | "device-identified" | "clock-synchronized" | "recording";
|
|
4
4
|
/** Connection lifecycle event of a device. */
|
|
5
5
|
export interface DeviceConnectionEvent {
|
|
6
6
|
/** Device the event relates to. */
|
|
@@ -22,5 +22,21 @@ export interface DeviceConnectionEvent {
|
|
|
22
22
|
clockAt?: Date;
|
|
23
23
|
/** Phone's UTC offset in minutes east of UTC at the clock write. */
|
|
24
24
|
phoneUtcOffsetMinutes?: number;
|
|
25
|
+
/**
|
|
26
|
+
* A recorder's open recording, on a `recording` event; absent once the recording has ended.
|
|
27
|
+
* Sent when it starts, when the electrodes lose or regain contact, and when it becomes long
|
|
28
|
+
* enough to be stored.
|
|
29
|
+
*/
|
|
30
|
+
recording?: {
|
|
31
|
+
/** Seconds recorded so far. */
|
|
32
|
+
seconds: number;
|
|
33
|
+
/**
|
|
34
|
+
* When the electrodes lost contact, while they have none; the recording stays open until it
|
|
35
|
+
* is stopped. An app can offer to stop it once this is old enough, as the vendor app does.
|
|
36
|
+
*/
|
|
37
|
+
leadOffSince?: Date;
|
|
38
|
+
/** Stopping now stores the recording; a shorter one is discarded by the device. */
|
|
39
|
+
storesOnStop: boolean;
|
|
40
|
+
};
|
|
25
41
|
}
|
|
26
42
|
//# sourceMappingURL=device-connection-event.d.ts.map
|
package/lib/typescript/commonjs/src/modules/bt-management/types/device-connection-event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-connection-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-connection-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,WAAW,GACX,QAAQ,GACR,kBAAkB,GAClB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"device-connection-event.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-connection-event.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,0CAA0C;AAC1C,MAAM,MAAM,yBAAyB,GACjC,SAAS,GACT,WAAW,GACX,QAAQ,GACR,kBAAkB,GAClB,SAAS,GACT,mBAAmB,GACnB,oBAAoB,GACpB,WAAW,CAAC;AAEhB,8CAA8C;AAC9C,MAAM,WAAW,qBAAqB;IAEpC,mCAAmC;IACnC,UAAU,EAAE,UAAU,CAAC;IAEvB,qBAAqB;IACrB,IAAI,EAAE,yBAAyB,CAAC;IAEhC,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B,+EAA+E;IAC/E,QAAQ,CAAC,EAAE;QAET,kCAAkC;QAClC,OAAO,EAAE,MAAM,CAAC;QAEhB,iCAAiC;QACjC,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,0FAA0F;IAC1F,OAAO,CAAC,EAAE,IAAI,CAAC;IAEf,oEAAoE;IACpE,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAEV,+BAA+B;QAC/B,OAAO,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,YAAY,CAAC,EAAE,IAAI,CAAC;QAEpB,mFAAmF;QACnF,YAAY,EAAE,OAAO,CAAC;KACvB,CAAC;CACH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeviceData } from "./device-data";
|
|
2
|
+
/** The ECG samples a recorder sent in one realtime answer, for drawing a live trace; never saved. */
|
|
3
|
+
export interface DeviceWaveform {
|
|
4
|
+
/** Device the samples came from. */
|
|
5
|
+
deviceData: DeviceData;
|
|
6
|
+
/** Raw sample counts, oldest first. */
|
|
7
|
+
samples: readonly number[];
|
|
8
|
+
/** Samples per second. */
|
|
9
|
+
sampleRateHz: number;
|
|
10
|
+
/** Millivolts per sample count. */
|
|
11
|
+
millivoltsPerCount: number;
|
|
12
|
+
/** When the answer carrying them arrived. */
|
|
13
|
+
at: Date;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=device-waveform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-waveform.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-waveform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qGAAqG;AACrG,MAAM,WAAW,cAAc;IAE7B,oCAAoC;IACpC,UAAU,EAAE,UAAU,CAAC;IAEvB,uCAAuC;IACvC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAE3B,0BAA0B;IAC1B,YAAY,EAAE,MAAM,CAAC;IAErB,mCAAmC;IACnC,kBAAkB,EAAE,MAAM,CAAC;IAE3B,6CAA6C;IAC7C,EAAE,EAAE,IAAI,CAAC;CACV"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const i16FromHex: (hex: string[], i: number) => number;
|
|
1
|
+
export declare const i16FromHex: (hex: readonly string[], i: number) => number;
|
|
2
2
|
//# sourceMappingURL=i-16-from-hex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-16-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/i-16-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"i-16-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/i-16-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,MAI9D,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const le32FromHex: (hex: string[], i: number) => number;
|
|
1
|
+
export declare const le32FromHex: (hex: readonly string[], i: number) => number;
|
|
2
2
|
//# sourceMappingURL=le-32-from-hex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"le-32-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/le-32-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"le-32-from-hex.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/le-32-from-hex.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,KAAK,SAAS,MAAM,EAAE,EAAE,GAAG,MAAM,KAAG,MAO/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAM9G,eAAO,MAAM,gCAAgC,sKAUxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAqNlE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const getNotRequestedIdentifiers: <T>(identifiers: T[], getStatus: (identifier: T) => Promise<
|
|
1
|
+
import { AuthorizationRequestStatus } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
declare const getNotRequestedIdentifiers: <T>(identifiers: T[], getStatus: (identifier: T) => Promise<AuthorizationRequestStatus>) => Promise<T[]>;
|
|
3
3
|
export { getNotRequestedIdentifiers };
|
|
4
4
|
//# sourceMappingURL=apple-health-authorization-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-utils.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAEhF,QAAA,MAAM,0BAA0B,GAAU,CAAC,EACzC,aAAa,CAAC,EAAE,EAChB,WAAW,CAAC,UAAU,EAAE,CAAC,KAAK,OAAO,CAAC,0BAA0B,CAAC,KAChE,OAAO,CAAC,CAAC,EAAE,CAWb,CAAC;AAEF,OAAO,EAAE,0BAA0B,EAAE,CAAC"}
|