@ovok/native 1.10.9 → 1.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +34 -1
- package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +47 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-aoj-variants.js +137 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-aoj-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js +15 -1
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +119 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js +3 -2
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js +227 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-joytech-variants.js +95 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-joytech-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-jumper-variants.js +149 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-jumper-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js +1007 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +173 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-variants.js +1093 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js +320 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +113 -0
- package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js +58 -27
- package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +2 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js +39 -0
- package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/aoj-device-variants.js +112 -0
- package/lib/commonjs/modules/bt-management/constants/aoj-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +84 -0
- package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js +101 -0
- package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/device-variants.js +256 -0
- package/lib/commonjs/modules/bt-management/constants/device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/famidoc-device-variants.js +190 -0
- package/lib/commonjs/modules/bt-management/constants/famidoc-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js +9 -1
- package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/joytech-device-variants.js +80 -0
- package/lib/commonjs/modules/bt-management/constants/joytech-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/jumper-device-variants.js +115 -0
- package/lib/commonjs/modules/bt-management/constants/jumper-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js +807 -0
- package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js +144 -0
- package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/transtek-device-variants.js +890 -0
- package/lib/commonjs/modules/bt-management/constants/transtek-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js +93 -0
- package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
- package/lib/commonjs/modules/bt-management/index.js +20 -0
- package/lib/commonjs/modules/bt-management/index.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js +33 -0
- package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/custom/define-custom-device.js +7 -1
- package/lib/commonjs/modules/bt-management/services/custom/define-custom-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/device-classes.js +44 -1
- package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/device-secrets.js +68 -0
- package/lib/commonjs/modules/bt-management/services/device-secrets.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +61 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +113 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +77 -0
- package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +41 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js +45 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +140 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +138 -0
- package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +12 -7
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js +27 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +4 -4
- 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 +19 -3
- package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +86 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +155 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +33 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +87 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +185 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +86 -0
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +12 -4
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js +49 -0
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +163 -0
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +95 -0
- package/lib/commonjs/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js +40 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js +162 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js +63 -0
- package/lib/commonjs/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +56 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js +67 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js +60 -0
- package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js +89 -0
- package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/polling-command-sequencer.js +22 -8
- package/lib/commonjs/modules/bt-management/services/devices/polling-command-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +13 -2
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +153 -0
- package/lib/commonjs/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +50 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +127 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js +181 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +139 -0
- package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js +71 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +112 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js +132 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js +145 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js +91 -0
- package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +90 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +202 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js +137 -0
- package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/types/integrated-devices.js +33 -0
- package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/device-title.js +5 -1
- package/lib/commonjs/modules/bt-management/utils/device-title.js.map +1 -1
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +34 -1
- package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +45 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-aoj-variants.js +135 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-aoj-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js +15 -1
- package/lib/module/modules/bt-device/constants/supported-device-catalog-assets.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +117 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js +3 -2
- package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
- package/lib/module/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js +225 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-famidoc-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-joytech-variants.js +93 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-joytech-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-jumper-variants.js +147 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-jumper-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js +1005 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +171 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-variants.js +1091 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js +317 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +111 -0
- package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
- package/lib/module/modules/bt-device/constants/supported-devices.js +59 -28
- package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +2 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/constants/and-medical-device-variants.js +37 -0
- package/lib/module/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/aoj-device-variants.js +110 -0
- package/lib/module/modules/bt-management/constants/aoj-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +82 -0
- package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
- package/lib/module/modules/bt-management/constants/cofoe-device-variants.js +99 -0
- package/lib/module/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/device-variants.js +253 -0
- package/lib/module/modules/bt-management/constants/device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/famidoc-device-variants.js +188 -0
- package/lib/module/modules/bt-management/constants/famidoc-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/integrated-devices-map.js +9 -1
- package/lib/module/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
- package/lib/module/modules/bt-management/constants/joytech-device-variants.js +78 -0
- package/lib/module/modules/bt-management/constants/joytech-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/jumper-device-variants.js +113 -0
- package/lib/module/modules/bt-management/constants/jumper-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/standard-device-variants.js +804 -0
- package/lib/module/modules/bt-management/constants/standard-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/taidoc-device-variants.js +142 -0
- package/lib/module/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/transtek-device-variants.js +888 -0
- package/lib/module/modules/bt-management/constants/transtek-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/constants/yonker-device-variants.js +91 -0
- package/lib/module/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
- package/lib/module/modules/bt-management/index.js +2 -0
- package/lib/module/modules/bt-management/index.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js +33 -0
- package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
- package/lib/module/modules/bt-management/services/custom/define-custom-device.js +7 -1
- package/lib/module/modules/bt-management/services/custom/define-custom-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/device-classes.js +44 -1
- package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
- package/lib/module/modules/bt-management/services/device-secrets.js +59 -0
- package/lib/module/modules/bt-management/services/device-secrets.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +57 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +106 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +74 -0
- package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +37 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js +41 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js +123 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js +134 -0
- package/lib/module/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +12 -7
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js +27 -1
- package/lib/module/modules/bt-management/services/devices/bt-connection-handler.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +4 -4
- 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 +19 -3
- package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +82 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +148 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +30 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +83 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +173 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +78 -0
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +12 -4
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js +45 -0
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js +149 -0
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js +91 -0
- package/lib/module/modules/bt-management/services/devices/famidoc/famidoc.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js +36 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js +150 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js +60 -0
- package/lib/module/modules/bt-management/services/devices/joytech/joytech.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +52 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js +62 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js +57 -0
- package/lib/module/modules/bt-management/services/devices/jumper/jumper.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +83 -0
- package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/polling-command-sequencer.js +22 -8
- package/lib/module/modules/bt-management/services/devices/polling-command-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js +6 -2
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js +149 -0
- package/lib/module/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +46 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +114 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +168 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +136 -0
- package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js +67 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js +94 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js +125 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.records.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js +142 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.session.js +85 -0
- package/lib/module/modules/bt-management/services/devices/transtek/transtek-command.session.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +86 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +186 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +133 -0
- package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/types/custom-device-definition.js +2 -0
- package/lib/module/modules/bt-management/types/custom-device-definition.js.map +1 -1
- package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
- package/lib/module/modules/bt-management/types/integrated-devices.js +33 -0
- package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
- package/lib/module/modules/bt-management/utils/device-title.js +5 -1
- package/lib/module/modules/bt-management/utils/device-title.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +15 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.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/constants/and-medical-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/aoj-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/aoj-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/famidoc-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/famidoc-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/joytech-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/joytech-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/jumper-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/jumper-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/standard-device-variants.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-device-variants.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/define-custom-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +43 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-secrets.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/device-secrets.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +54 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts +36 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -2
- 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/famidoc/famidoc.device.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +56 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts +34 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +43 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +18 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +32 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts +22 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +37 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts +4 -2
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +51 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts +49 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts +39 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts +4 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-service-spec.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-service-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +34 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/service.type.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/service.type.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/write-characteristic.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/write-characteristic.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/device-title.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
- package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-aoj-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts +15 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-assets.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-famidoc-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-joytech-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-jumper-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts +15 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +8 -0
- package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.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/constants/and-medical-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/aoj-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/aoj-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
- package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/famidoc-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/famidoc-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/joytech-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/joytech-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/jumper-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/jumper-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/standard-device-variants.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/transtek-device-variants.d.ts +10 -0
- package/lib/typescript/module/src/modules/bt-management/constants/transtek-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
- package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/custom/define-custom-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +43 -0
- package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/device-secrets.d.ts +22 -0
- package/lib/typescript/module/src/modules/bt-management/services/device-secrets.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts +17 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-70b.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts +54 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts +36 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj-bp.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-connection-handler.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts +3 -2
- 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/famidoc/famidoc.device.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts +56 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts +34 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/famidoc/famidoc.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts +43 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts +23 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/joytech/joytech.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts +18 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts +32 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts +22 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +37 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts +4 -2
- package/lib/typescript/module/src/modules/bt-management/services/devices/polling-command-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/standard-gatt/standard-gatt.glucose.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts +21 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts +51 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts +33 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.records.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts +49 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts +39 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/transtek-command.session.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts +4 -2
- package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-device-definition.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-service-spec.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/types/custom-service-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +33 -0
- package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +34 -1
- package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/service.type.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/types/service.type.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/write-characteristic.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/types/write-characteristic.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/utils/device-title.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_caseType","require","_deviceSecrets","_transtekCommandProtocol","_transtekCommandRecords","_transtekCommandSession","TranstekCommandSequencer","a3","pairing","receiving","ended","recorded","constructor","params","serviceUuid","SERVICES","kind","a2","onServicesDiscovered","serviceUuids","undefined","includes","initialCommands","isNormalDisconnect","commandTimeoutMs","pendingRandom","SECRET_WAIT_MS","END_AFTER_MS","onCommandTimeout","random","commands","verify","command","endSessionCommand","commandProgress","frame","opcode","ANSWER","peekDeviceSecret","secretKey","nextCommand","characteristicUuid","toLowerCase","TRANSTEK_CHARACTERISTICS","answer","record","password","saveDeviceSecret","String","readPassword","then","stored","onError","Error","accountIdCommand","USER","readRandom","userCount","bindUser","userInfo","scaleProfileCommand","heightInCentimetres","endCommand","retried","Number","isFinite","verificationCommand","stepsAfterVerification","now","stepsToBindUser","steps","map","step","endsSession","delayMs","reading","decodeTranstekRecord","shiftUser","onResult","caseType","CaseType","RESULT","Date","delayBeforeWriteMs","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAAC,cAAA,GAAAD,OAAA;AAEA,IAAAE,wBAAA,G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ChE,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACE,MAAM,CAACiE,QAAQ,CAAC;MAAEC,QAAQ,EAAEC,kBAAQ,CAACC,MAAM;MAAE,GAAGN;IAAQ,CAAC,CAAC;EACjE,CAAC;EAEOP,GAAG,GAAGA,CAAA,KAAY,IAAI,CAACvD,MAAM,CAACuD,GAAG,GAAG,CAAC,IAAI,IAAIc,IAAI,CAAC,CAAC;EAEnDpB,UAAU,GAAGA,CAAA,KAAqB;IACxC,IAAI,CAACpD,KAAK,GAAG,IAAI;IAEjB,OAAO,IAAI,CAACsB,OAAO,CAAC,IAAAC,0CAAiB,EAAC,CAAC,CAAC;EAC1C,CAAC;EAEOD,OAAO,GAAGA,CAACG,KAAe,EAAEgD,kBAA2B,MAAqB;IAClFrE,WAAW,EAAE,IAAI,CAACA,WAAW;IAC7B2B,kBAAkB,EAAEE,iDAAwB,CAACX,OAAO;IACpDG,KAAK;IACL,IAAIgD,kBAAkB,GAAG;MAAEA;IAAmB,CAAC,GAAG,CAAC,CAAC;EACtD,CAAC,CAAC;AACJ;AAACC,OAAA,CAAA9E,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.stepsToBindUser = exports.stepsAfterVerification = exports.USER = exports.SERVICES = exports.SECRET_WAIT_MS = exports.END_AFTER_MS = exports.BOUND_NAME = void 0;
|
|
7
|
+
var _transtekCommandProtocol = require("./transtek-command.protocol.js");
|
|
8
|
+
/* eslint-disable import/group-exports */
|
|
9
|
+
|
|
10
|
+
/** The only user slot the SDK binds; the protocol allows more, the SDK has one patient per phone. */
|
|
11
|
+
const USER = exports.USER = 1;
|
|
12
|
+
|
|
13
|
+
/** How long an unanswered random number waits for the stored password to load. */
|
|
14
|
+
const SECRET_WAIT_MS = exports.SECRET_WAIT_MS = 1_000;
|
|
15
|
+
|
|
16
|
+
/** The name bound into an A3 device's user slot. */
|
|
17
|
+
const BOUND_NAME = exports.BOUND_NAME = "OVOK";
|
|
18
|
+
|
|
19
|
+
/** Quiet time after the last record before the app ends the session, per MedM. */
|
|
20
|
+
const END_AFTER_MS = exports.END_AFTER_MS = {
|
|
21
|
+
"blood-pressure": 1_000,
|
|
22
|
+
scale: 30_000,
|
|
23
|
+
tracker: 1_000
|
|
24
|
+
};
|
|
25
|
+
const SERVICES = exports.SERVICES = {
|
|
26
|
+
"blood-pressure": {
|
|
27
|
+
a2: _transtekCommandProtocol.TRANSTEK_SERVICES.bloodPressureA2,
|
|
28
|
+
a3: _transtekCommandProtocol.TRANSTEK_SERVICES.bloodPressureA3
|
|
29
|
+
},
|
|
30
|
+
scale: {
|
|
31
|
+
a2: _transtekCommandProtocol.TRANSTEK_SERVICES.scaleA2,
|
|
32
|
+
a3: _transtekCommandProtocol.TRANSTEK_SERVICES.scaleA3
|
|
33
|
+
},
|
|
34
|
+
tracker: {
|
|
35
|
+
a2: _transtekCommandProtocol.TRANSTEK_SERVICES.tracker
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** One write, and the pause MedM leaves before it. */
|
|
40
|
+
|
|
41
|
+
const end = delayMs => ({
|
|
42
|
+
frame: (0, _transtekCommandProtocol.endSessionCommand)(),
|
|
43
|
+
delayMs,
|
|
44
|
+
endsSession: true
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* What follows a correct verification code. An A3 device that is pairing binds a user slot
|
|
49
|
+
* first, so for it nothing follows until its user count (83) arrives.
|
|
50
|
+
*/
|
|
51
|
+
const stepsAfterVerification = (kind, a3, pairing, now) => {
|
|
52
|
+
if (pairing && a3 && kind !== "tracker") {
|
|
53
|
+
return [];
|
|
54
|
+
}
|
|
55
|
+
if (kind === "tracker") {
|
|
56
|
+
return [...(pairing ? [{
|
|
57
|
+
frame: (0, _transtekCommandProtocol.trackerConfigurationCommand)(),
|
|
58
|
+
delayMs: 500
|
|
59
|
+
}] : []), {
|
|
60
|
+
frame: (0, _transtekCommandProtocol.setTimeCommand)(now),
|
|
61
|
+
delayMs: 500
|
|
62
|
+
}, {
|
|
63
|
+
frame: (0, _transtekCommandProtocol.trackerUserDataCommand)(),
|
|
64
|
+
delayMs: 500
|
|
65
|
+
}, ...(pairing ? [end(500)] : [])];
|
|
66
|
+
}
|
|
67
|
+
return [{
|
|
68
|
+
frame: (0, _transtekCommandProtocol.setTimeCommand)(now),
|
|
69
|
+
delayMs: a3 && kind === "scale" ? 1500 : 500
|
|
70
|
+
}, ...(pairing ? [end(1500)] : [])];
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** An A3 device's pairing, once it has sent its user count: bind, profile (scales), time, end. */
|
|
74
|
+
exports.stepsAfterVerification = stepsAfterVerification;
|
|
75
|
+
const stepsToBindUser = (kind, heightInCentimetres, now) => kind === "scale" ? [{
|
|
76
|
+
frame: (0, _transtekCommandProtocol.bindUserCommand)(USER, BOUND_NAME),
|
|
77
|
+
delayMs: 1000
|
|
78
|
+
}, {
|
|
79
|
+
frame: (0, _transtekCommandProtocol.scaleProfileCommand)(USER, heightInCentimetres),
|
|
80
|
+
delayMs: 500
|
|
81
|
+
}, {
|
|
82
|
+
frame: (0, _transtekCommandProtocol.setTimeCommand)(now),
|
|
83
|
+
delayMs: 500
|
|
84
|
+
}, end(1500)] : [{
|
|
85
|
+
frame: (0, _transtekCommandProtocol.bindUserCommand)(USER, BOUND_NAME)
|
|
86
|
+
}, {
|
|
87
|
+
frame: (0, _transtekCommandProtocol.setTimeCommand)(now),
|
|
88
|
+
delayMs: 500
|
|
89
|
+
}, end(1500)];
|
|
90
|
+
exports.stepsToBindUser = stepsToBindUser;
|
|
91
|
+
//# sourceMappingURL=transtek-command.session.js.map
|
package/lib/commonjs/modules/bt-management/services/devices/transtek/transtek-command.session.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_transtekCommandProtocol","require","USER","exports","SECRET_WAIT_MS","BOUND_NAME","END_AFTER_MS","scale","tracker","SERVICES","a2","TRANSTEK_SERVICES","bloodPressureA2","a3","bloodPressureA3","scaleA2","scaleA3","end","delayMs","frame","endSessionCommand","endsSession","stepsAfterVerification","kind","pairing","now","trackerConfigurationCommand","setTimeCommand","trackerUserDataCommand","stepsToBindUser","heightInCentimetres","bindUserCommand","scaleProfileCommand"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/transtek-command.session.ts"],"mappings":";;;;;;AAEA,IAAAA,wBAAA,GAAAC,OAAA;AAFA;;AA+BA;AACO,MAAMC,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG,CAAC;;AAErB;AACO,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAG,KAAK;;AAEnC;AACO,MAAMC,UAAU,GAAAF,OAAA,CAAAE,UAAA,GAAG,MAAM;;AAEhC;AACO,MAAMC,YAA0C,GAAAH,OAAA,CAAAG,YAAA,GAAG;EACxD,gBAAgB,EAAE,KAAK;EACvBC,KAAK,EAAE,MAAM;EACbC,OAAO,EAAE;AACX,CAAC;AAEM,MAAMC,QAA2D,GAAAN,OAAA,CAAAM,QAAA,GAAG;EACzE,gBAAgB,EAAE;IAChBC,EAAE,EAAEC,0CAAiB,CAACC,eAAe;IACrCC,EAAE,EAAEF,0CAAiB,CAACG;EACxB,CAAC;EACDP,KAAK,EAAE;IAAEG,EAAE,EAAEC,0CAAiB,CAACI,OAAO;IAAEF,EAAE,EAAEF,0CAAiB,CAACK;EAAQ,CAAC;EACvER,OAAO,EAAE;IAAEE,EAAE,EAAEC,0CAAiB,CAACH;EAAQ;AAC3C,CAAC;;AAED;;AAOA,MAAMS,GAAG,GAAIC,OAAe,KAAmB;EAC7CC,KAAK,EAAE,IAAAC,0CAAiB,EAAC,CAAC;EAC1BF,O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C9B,IAAI,EAAE4B,mBAAmB,CAAC;EAAEZ,OAAO,EAAE;AAAI,CAAC,EACvE;EAAEC,KAAK,EAAE,IAAAQ,uCAAc,EAACF,GAAG,CAAC;EAAEP,OAAO,EAAE;AAAI,CAAC,EAC5CD,GAAG,CAAC,IAAI,CAAC,CACV,GACD,CACE;EAAEE,KAAK,EAAE,IAAAY,wCAAe,EAAC7B,IAAI,EAAEG,UAAU;AAAE,CAAC,EAC5C;EAAEc,KAAK,EAAE,IAAAQ,uCAAc,EAACF,GAAG,CAAC;EAAEP,OAAO,EAAE;AAAI,CAAC,EAC5CD,GAAG,CAAC,IAAI,CAAC,CACV;AAACd,OAAA,CAAA0B,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.YonkerDevice = void 0;
|
|
7
|
+
var _integratedDevices = require("../../../types/integrated-devices.js");
|
|
8
|
+
var _btManagedDevice = require("../bt-managed-device.js");
|
|
9
|
+
var _liveOximeterSequencer = require("../live-oximeter.sequencer.js");
|
|
10
|
+
var _yonkerProtocol = require("./yonker.protocol.js");
|
|
11
|
+
var _yonkerSequencer = require("./yonker.sequencer.js");
|
|
12
|
+
const passThrough = {
|
|
13
|
+
caseValuePosition: [],
|
|
14
|
+
cases: []
|
|
15
|
+
};
|
|
16
|
+
const service = (uuid, notify, optional = false) => ({
|
|
17
|
+
uuid,
|
|
18
|
+
optional,
|
|
19
|
+
monitorUuids: notify.map(monitor => ({
|
|
20
|
+
uuid: monitor,
|
|
21
|
+
parsingModel: passThrough
|
|
22
|
+
}))
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** MedM subscribes to all three; the type byte, not the characteristic, says what a frame is. */
|
|
26
|
+
const YONKER_SERVICES = [service(_yonkerProtocol.YONKER_GATT.service, [_yonkerProtocol.YONKER_GATT.notify, _yonkerProtocol.YONKER_GATT.notifyAlternate], true), service(_yonkerProtocol.YONKER_GATT.uartService, [_yonkerProtocol.YONKER_GATT.uartNotify], true)];
|
|
27
|
+
const SERVICES = {
|
|
28
|
+
[_integratedDevices.IntegratedDevices.YONKER_OXIMETER]: YONKER_SERVICES,
|
|
29
|
+
[_integratedDevices.IntegratedDevices.YONKER_BPM]: YONKER_SERVICES,
|
|
30
|
+
[_integratedDevices.IntegratedDevices.YONKER_THERMOMETER]: YONKER_SERVICES,
|
|
31
|
+
[_integratedDevices.IntegratedDevices.YONKER_SCALE]: [service(_yonkerProtocol.AILINK_GATT.service, [_yonkerProtocol.AILINK_GATT.notify])],
|
|
32
|
+
[_integratedDevices.IntegratedDevices.YONKER_80B]: [service(_yonkerProtocol.AILINK_GATT.service, [_yonkerProtocol.AILINK_GATT.notify])]
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** The YK-80B: MedM asks for the firmware version on connect, then reads the stream. */
|
|
36
|
+
class Yonker80bSequencer extends _liveOximeterSequencer.LiveOximeterSequencer {
|
|
37
|
+
initialCommands = () => [{
|
|
38
|
+
serviceUuid: _yonkerProtocol.AILINK_GATT.service,
|
|
39
|
+
characteristicUuid: _yonkerProtocol.AILINK_GATT.writeShort,
|
|
40
|
+
frame: _yonkerProtocol.FIRMWARE_REQUEST
|
|
41
|
+
}];
|
|
42
|
+
}
|
|
43
|
+
const SEQUENCERS = {
|
|
44
|
+
[_integratedDevices.IntegratedDevices.YONKER_OXIMETER]: onResult => new _liveOximeterSequencer.LiveOximeterSequencer({
|
|
45
|
+
readValues: frame => (0, _liveOximeterSequencer.readOximeterData)(frame, _liveOximeterSequencer.AOJ_VALUES, "spo2-pulse"),
|
|
46
|
+
onResult
|
|
47
|
+
}),
|
|
48
|
+
[_integratedDevices.IntegratedDevices.YONKER_BPM]: onResult => new _yonkerSequencer.YonkerSequencer({
|
|
49
|
+
kind: "blood-pressure",
|
|
50
|
+
onResult
|
|
51
|
+
}),
|
|
52
|
+
[_integratedDevices.IntegratedDevices.YONKER_THERMOMETER]: onResult => new _yonkerSequencer.YonkerSequencer({
|
|
53
|
+
kind: "thermometer",
|
|
54
|
+
onResult
|
|
55
|
+
}),
|
|
56
|
+
[_integratedDevices.IntegratedDevices.YONKER_SCALE]: onResult => new _yonkerSequencer.YonkerScaleSequencer({
|
|
57
|
+
onResult
|
|
58
|
+
}),
|
|
59
|
+
[_integratedDevices.IntegratedDevices.YONKER_80B]: onResult => new Yonker80bSequencer({
|
|
60
|
+
readValues: _yonkerProtocol.read80bMeasurement,
|
|
61
|
+
onResult
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Yonker YK-81C oximeters, YK-BPA blood-pressure monitors, YK-IRT4 thermometers, the AiLink
|
|
67
|
+
* weight scale and the YK-80B oximeter, with their rebrands.
|
|
68
|
+
*/
|
|
69
|
+
class YonkerDeviceClass extends _btManagedDevice.BTManagedDevice {
|
|
70
|
+
stuckDataTimeout = 120_000;
|
|
71
|
+
onStreamStart = undefined;
|
|
72
|
+
constructor(device, params) {
|
|
73
|
+
super(device, params);
|
|
74
|
+
this.mainServices = SERVICES[params.deviceName];
|
|
75
|
+
if (params.deviceName === _integratedDevices.IntegratedDevices.YONKER_SCALE) {
|
|
76
|
+
this.frameReader = new _yonkerProtocol.AilinkFrameReader([0xa7]);
|
|
77
|
+
} else if (params.deviceName === _integratedDevices.IntegratedDevices.YONKER_80B) {
|
|
78
|
+
this.frameReader = new _yonkerProtocol.AilinkFrameReader([0xa6, 0xa7]);
|
|
79
|
+
}
|
|
80
|
+
this.createCommandSequencer = () => SEQUENCERS[params.deviceName](result => this.onResult?.(result));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** The oximeter, monitor and thermometer send one frame per notification. */
|
|
84
|
+
validatePackage = () => true;
|
|
85
|
+
handleSuccessResult() {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.YonkerDevice = YonkerDeviceClass;
|
|
90
|
+
//# sourceMappingURL=yonker.device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_integratedDevices","require","_btManagedDevice","_liveOximeterSequencer","_yonkerProtocol","_yonkerSequencer","passThrough","caseValuePosition","cases","service","uuid","notify","optional","monitorUuids","map","monitor","parsingModel","YONKER_SERVICES","YONKER_GATT","notifyAlternate","uartService","uartNotify","SERVICES","IntegratedDevices","YONKER_OXIMETER","YONKER_BPM","YONKER_THERMOMETER","YONKER_SCALE","AILINK_GATT","YONKER_80B","Yonker80bSequencer","LiveOximeterSequencer","initialCommands","serviceUuid","characteristicUuid","writeShort","frame","FIRMWARE_REQUEST","SEQUENCERS","onResult","readValues","readOximeterData","AOJ_VALUES","YonkerSequencer","kind","YonkerScaleSequencer","read80bMeasurement","YonkerDeviceClass","BTManagedDevice","stuckDataTimeout","onStreamStart","undefined","constructor","device","params","mainServices","deviceName","frameReader","AilinkFrameReader","createCommandSequencer","result","validatePackage","handleSuccessResult","exports","YonkerDevice"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/yonker/yonker.device.ts"],"mappings":";;;;;;AAKA,IAAAA,kBAAA,GAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAOA,IAAAI,gBAAA,GAAAJ,OAAA;AAWA,MAAMK,WAAW,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAExD,MAAMC,OAAO,GAAGA,CAACC,IAAY,EAAEC,MAAyB,EAAEC,QAAQ,GAAG,KAAK,MAAgB;EACxFF,IAAI;EACJE,QAAQ;EACRC,YAAY,EAAEF,MAAM,CAACG,GAAG,CAAEC,OAAO,KAAM;IAAEL,IAAI,EAAEK,OAAO;IAAEC,YAAY,EAAEV;EAAY,CAAC,CAAC;A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AACF;AAACC,OAAA,CAAAC,YAAA,GAAAjB,iBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.shortFrame = exports.scaleSetTimeCommand = exports.readYonkerTemperature = exports.readYonkerBloodPressure = exports.readScaleWeight = exports.read80bMeasurement = exports.longFrame = exports.idOf = exports.commandOf = exports.bpmSetTimeCommand = exports.bodyOf = exports.YONKER_GATT = exports.FIRMWARE_REQUEST = exports.AilinkFrameReader = exports.AILINK_GATT = void 0;
|
|
7
|
+
var _frameReadStatus = require("../../../types/frame-read-status.js");
|
|
8
|
+
var _hexToByte = require("../../../utils/hex-to-byte.js");
|
|
9
|
+
/* eslint-disable import/group-exports */
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Yonker devices and their rebrands, from MedM Health Diary 3.12.11's `CYonker_*` classes.
|
|
13
|
+
*
|
|
14
|
+
* The oximeter, blood-pressure monitor and thermometer share one GATT map and send one frame
|
|
15
|
+
* per notification: a type byte (`80` live, `81` result) and its values, no length, no
|
|
16
|
+
* checksum. The scale (an AiLink module, MedM's `CConmo_WeightScale`) and the YK-80B oximeter
|
|
17
|
+
* frame everything as `A6|A7 xx xx LL CMD body CS 7A`.
|
|
18
|
+
*/
|
|
19
|
+
const sig16 = assigned => `0000${assigned}-0000-1000-8000-00805f9b34fb`;
|
|
20
|
+
const YONKER_GATT = exports.YONKER_GATT = {
|
|
21
|
+
service: "cdeacd80-5235-4c07-8846-93a37ee6b86d",
|
|
22
|
+
notify: "cdeacd81-5235-4c07-8846-93a37ee6b86d",
|
|
23
|
+
notifyAlternate: "cdeacd82-5235-4c07-8846-93a37ee6b86d",
|
|
24
|
+
/** Nordic UART; MedM subscribes to its `…0002` characteristic. */
|
|
25
|
+
uartService: "6e400001-b5a3-f393-e0a9-e50e24dcca9e",
|
|
26
|
+
uartNotify: "6e400002-b5a3-f393-e0a9-e50e24dcca9e",
|
|
27
|
+
/** Where the blood-pressure monitor takes its clock. */
|
|
28
|
+
timeService: sig16("1804"),
|
|
29
|
+
timeWrite: sig16("2a07")
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** The scale and the YK-80B: notify on `ffe2`, long frames to `ffe1`, short ones to `ffe3`. */
|
|
33
|
+
const AILINK_GATT = exports.AILINK_GATT = {
|
|
34
|
+
service: sig16("ffe0"),
|
|
35
|
+
writeLong: sig16("ffe1"),
|
|
36
|
+
notify: sig16("ffe2"),
|
|
37
|
+
writeShort: sig16("ffe3")
|
|
38
|
+
};
|
|
39
|
+
const bytes = frame => frame.map(byte => (0, _hexToByte.hexToByte)(byte));
|
|
40
|
+
const toHex = values => values.map(value => (value & 0xff).toString(16).padStart(2, "0"));
|
|
41
|
+
const sum = values => values.reduce((total, value) => total + value, 0) & 0xff;
|
|
42
|
+
|
|
43
|
+
/** `8F YY MM DD hh mm` and nine zero bytes, local time. */
|
|
44
|
+
const bpmSetTimeCommand = now => toHex([0x8f, now.getFullYear() - 2000, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), ...new Array(9).fill(0)]);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* `81 SYS DIA PULSE USER RECORD YY MM DD hh mm`, mmHg, local time. A zero year means the clock
|
|
48
|
+
* was never set, and the phone's time is used, as MedM does.
|
|
49
|
+
*/
|
|
50
|
+
exports.bpmSetTimeCommand = bpmSetTimeCommand;
|
|
51
|
+
const readYonkerBloodPressure = (frame, now) => {
|
|
52
|
+
const b = bytes(frame);
|
|
53
|
+
if (b.length < 11 || b[0] !== 0x81 || !b[1] || !b[2]) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
const year = b[6] ?? 0;
|
|
57
|
+
const user = b[4] ?? 0;
|
|
58
|
+
return {
|
|
59
|
+
systolic: b[1],
|
|
60
|
+
diastolic: b[2],
|
|
61
|
+
...(b[3] ? {
|
|
62
|
+
heartRate: b[3]
|
|
63
|
+
} : {}),
|
|
64
|
+
recordedAt: year === 0 ? now : new Date(2000 + year, (b[7] ?? 1) - 1, b[8] ?? 1, b[9] ?? 0, b[10] ?? 0),
|
|
65
|
+
...(user > 0 ? {
|
|
66
|
+
memorySlot: user
|
|
67
|
+
} : {})
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* `80 hi lo FLAGS X`: hundredths of a degree; flags bit 1 marks Fahrenheit, which MedM ignores
|
|
73
|
+
* and the SDK converts.
|
|
74
|
+
*/
|
|
75
|
+
exports.readYonkerBloodPressure = readYonkerBloodPressure;
|
|
76
|
+
const readYonkerTemperature = frame => {
|
|
77
|
+
const b = bytes(frame);
|
|
78
|
+
if (b.length < 5 || b[0] !== 0x80) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
const value = ((b[1] ?? 0) << 8 | (b[2] ?? 0)) / 100;
|
|
82
|
+
if (value === 0) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
return ((b[3] ?? 0) & 0x02) !== 0 ? Math.round((value - 32) * 5 / 9 * 100) / 100 : value;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** `A7 ID ID (n+1) CMD payload CS 7A`, the checksum covering everything but the first byte. */
|
|
89
|
+
exports.readYonkerTemperature = readYonkerTemperature;
|
|
90
|
+
const longFrame = (id, command, payload = []) => {
|
|
91
|
+
const covered = [id >> 8, id & 0xff, payload.length + 1, command, ...payload];
|
|
92
|
+
return toHex([0xa7, ...covered, sum(covered), 0x7a]);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** `A6 (n+1) CMD payload CS 6A`. */
|
|
96
|
+
exports.longFrame = longFrame;
|
|
97
|
+
const shortFrame = (command, payload = []) => {
|
|
98
|
+
const covered = [payload.length + 1, command, ...payload];
|
|
99
|
+
return toHex([0xa6, ...covered, sum(covered), 0x6a]);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** Scale set time, command `37`: `YY MM DD hh mm ss weekday` (Sunday 1), local time. */
|
|
103
|
+
exports.shortFrame = shortFrame;
|
|
104
|
+
const scaleSetTimeCommand = now => shortFrame(0x37, [now.getFullYear() - 2000, now.getMonth() + 1, now.getDate(), now.getHours(), now.getMinutes(), now.getSeconds(), now.getDay() + 1]);
|
|
105
|
+
exports.scaleSetTimeCommand = scaleSetTimeCommand;
|
|
106
|
+
const idOf = frame => (0, _hexToByte.hexToByte)(frame[1] ?? "00") << 8 | (0, _hexToByte.hexToByte)(frame[2] ?? "00");
|
|
107
|
+
exports.idOf = idOf;
|
|
108
|
+
const commandOf = frame => (0, _hexToByte.hexToByte)(frame[4] ?? "00");
|
|
109
|
+
exports.commandOf = commandOf;
|
|
110
|
+
const bodyOf = frame => bytes(frame.slice(5, -2));
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Scale weight, command `02`: a u24 big-endian raw value, then precision (high nibble, decimal
|
|
114
|
+
* places) and unit (low nibble). Only kilograms (unit 0) are accepted - the SDK sets the scale to
|
|
115
|
+
* kilograms, and the other unit codes are not documented.
|
|
116
|
+
*/
|
|
117
|
+
exports.bodyOf = bodyOf;
|
|
118
|
+
const readScaleWeight = body => {
|
|
119
|
+
const raw = (body[0] ?? 0) << 16 | (body[1] ?? 0) << 8 | (body[2] ?? 0);
|
|
120
|
+
const format = body[3] ?? 0;
|
|
121
|
+
if (body.length < 4 || raw === 0 || (format & 0x0f) !== 0) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
return raw / 10 ** (format >> 4);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* YK-80B measurement, command `03`: status, SpO2, pulse, PI×10, battery, RR×10, waveform, bar,
|
|
129
|
+
* worn. Dropped when the status or worn flag is zero or the SpO2 is `FF`, as MedM does.
|
|
130
|
+
*/
|
|
131
|
+
exports.readScaleWeight = readScaleWeight;
|
|
132
|
+
const read80bMeasurement = frame => {
|
|
133
|
+
const body = bodyOf(frame);
|
|
134
|
+
if (commandOf(frame) !== 0x03 || body.length < 9) {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
const [status = 0, bloodOxygen = 0, pulseRate = 0, perfusionIndex = 0] = body;
|
|
138
|
+
if (status === 0 || body[8] === 0 || bloodOxygen === 0 || bloodOxygen > 100 || pulseRate === 0 || pulseRate === 0xff) {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
bloodOxygen,
|
|
143
|
+
pulseRate,
|
|
144
|
+
...(perfusionIndex > 0 && perfusionIndex !== 0xff ? {
|
|
145
|
+
perfusionIndex: perfusionIndex / 10
|
|
146
|
+
} : {})
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/** YK-80B firmware request, the one command MedM writes to it. */
|
|
151
|
+
exports.read80bMeasurement = read80bMeasurement;
|
|
152
|
+
const FIRMWARE_REQUEST = exports.FIRMWARE_REQUEST = shortFrame(0x0e);
|
|
153
|
+
|
|
154
|
+
/** Isolates checked `A7 … 7A` frames (and `A6 … 7A` for the YK-80B) across notifications. */
|
|
155
|
+
class AilinkFrameReader {
|
|
156
|
+
constructor(starts) {
|
|
157
|
+
this.starts = starts;
|
|
158
|
+
}
|
|
159
|
+
readFrame(buffer) {
|
|
160
|
+
const values = bytes(buffer);
|
|
161
|
+
const start = values.findIndex(value => this.starts.includes(value));
|
|
162
|
+
if (start === -1) {
|
|
163
|
+
return {
|
|
164
|
+
status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
|
|
165
|
+
consumedBytes: values.length
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
if (start + 4 > values.length) {
|
|
169
|
+
return {
|
|
170
|
+
status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
|
|
171
|
+
consumedBytes: start
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
const length = (values[start + 3] ?? 0) + 6;
|
|
175
|
+
if (length < 7) {
|
|
176
|
+
return {
|
|
177
|
+
status: _frameReadStatus.FrameReadStatus.CORRUPT,
|
|
178
|
+
consumedBytes: start + 1
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (start + length > values.length) {
|
|
182
|
+
return {
|
|
183
|
+
status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
|
|
184
|
+
consumedBytes: start
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
const received = values.slice(start, start + length);
|
|
188
|
+
if (received[length - 1] !== 0x7a || received[length - 2] !== sum(received.slice(1, -2))) {
|
|
189
|
+
return {
|
|
190
|
+
status: _frameReadStatus.FrameReadStatus.CORRUPT,
|
|
191
|
+
consumedBytes: start + 1
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
status: _frameReadStatus.FrameReadStatus.COMPLETE,
|
|
196
|
+
consumedBytes: start + length,
|
|
197
|
+
frame: buffer.slice(start, start + length)
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.AilinkFrameReader = AilinkFrameReader;
|
|
202
|
+
//# sourceMappingURL=yonker.protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_frameReadStatus","require","_hexToByte","sig16","assigned","YONKER_GATT","exports","service","notify","notifyAlternate","uartService","uartNotify","timeService","timeWrite","AILINK_GATT","writeLong","writeShort","bytes","frame","map","byte","hexToByte","toHex","values","value","toString","padStart","sum","reduce","total","bpmSetTimeCommand","now","getFullYear","getMonth","getDate","getHours","getMinutes","Array","fill","readYonkerBloodPressure","b","length","undefined","year","user","systolic","diastolic","heartRate","recordedAt","Date","memorySlot","readYonkerTemperature","Math","round","longFrame","id","command","payload","covered","shortFrame","scaleSetTimeCommand","getSeconds","getDay","idOf","commandOf","bodyOf","slice","readScaleWeight","body","raw","format","read80bMeasurement","status","bloodOxygen","pulseRate","perfusionIndex","FIRMWARE_REQUEST","AilinkFrameReader","constructor","starts","readFrame","buffer","start","findIndex","includes","FrameReadStatus","INCOMPLETE","consumedBytes","CORRUPT","received","COMPLETE"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/yonker/yonker.protocol.ts"],"mappings":";;;;;;AAGA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AALA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,KAAK,GAAIC,QAAgB,IAAa,OAAOA,QAAQ,8BAA8B;AAElF,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,OAAO,EAAE,sCAAsC;EAC/CC,MAAM,EAAE,sCAAsC;EAC9CC,eAAe,EAAE,sCAAsC;EAEvD;EACAC,WAAW,EAAE,sCAAsC;EACnDC,UAAU,EAAE,sCAAsC;EAElD;EACAC,WAAW,EAAET,KAAK,CAAC,MAAM,CAAC;EAC1BU,SAAS,EAAEV,KAAK,CAAC,MAAM;AACzB,CAAU;;AAEV;AACO,MAAMW,WAAW,GAAAR,OAAA,CAAAQ,WAAA,GAAG;EACzBP,OAAO,EAAEJ,KAAK,CAAC,MAAM,CAAC;EACtBY,SAAS,EAAEZ,KAAK,CAAC,MAAM,CAAC;EACxBK,MAAM,EAAEL,KAAK,CAAC,MAAM,CAAC;EACrBa,UAAU,EAAEb,KAAK,CAAC,MAAM;AAC1B,CAAU;AAEV,MAAMc,KAAK,GAAIC,KAAwB,IAAeA,KAAK,CAACC,GAAG,CAAEC,IAAI,IAAK,IAAAC,oBAAS,EAACD,IAAI,CAAC,CAAC;AAE1F,MAAME,KAAK,GAAIC,MAAyB,IACtCA,MAAM,CAACJ,GAAG,CAAEK,KAAK,IAAK,CAACA,KAAK,GAAG,IAAI,EAAEC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAErE,MAAMC,GAAG,GAA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|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.YonkerSequencer = exports.YonkerScaleSequencer = void 0;
|
|
7
|
+
var _core = require("@ovok/core");
|
|
8
|
+
var _caseType = require("../../../types/case-type.js");
|
|
9
|
+
var _yonkerProtocol = require("./yonker.protocol.js");
|
|
10
|
+
/** A thermometer that repeats the same temperature within this window is reporting it again. */
|
|
11
|
+
const REPEAT_WINDOW_MS = 30_000;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The Yonker blood-pressure monitor and thermometer push one frame per reading. The monitor is
|
|
15
|
+
* sent the time on connect and then pushes its records by itself.
|
|
16
|
+
*/
|
|
17
|
+
class YonkerSequencer {
|
|
18
|
+
recorded = false;
|
|
19
|
+
constructor(params) {
|
|
20
|
+
this.params = params;
|
|
21
|
+
}
|
|
22
|
+
initialCommands = () => this.params.kind === "blood-pressure" ? [{
|
|
23
|
+
serviceUuid: _yonkerProtocol.YONKER_GATT.timeService,
|
|
24
|
+
characteristicUuid: _yonkerProtocol.YONKER_GATT.timeWrite,
|
|
25
|
+
frame: (0, _yonkerProtocol.bpmSetTimeCommand)(this.now())
|
|
26
|
+
}] : [];
|
|
27
|
+
isNormalDisconnect = () => this.recorded;
|
|
28
|
+
nextCommand = frame => {
|
|
29
|
+
const reading = this.params.kind === "blood-pressure" ? this.bloodPressure(frame) : this.temperature(frame);
|
|
30
|
+
if (reading) {
|
|
31
|
+
this.recorded = true;
|
|
32
|
+
this.params.onResult({
|
|
33
|
+
caseType: _caseType.CaseType.RESULT,
|
|
34
|
+
...reading
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return undefined;
|
|
38
|
+
};
|
|
39
|
+
bloodPressure = frame => {
|
|
40
|
+
const reading = (0, _yonkerProtocol.readYonkerBloodPressure)(frame, this.now());
|
|
41
|
+
return reading && {
|
|
42
|
+
measurementTypeKey: _core.MeasurementTypeKey.bloodPressure,
|
|
43
|
+
...reading
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
temperature = frame => {
|
|
47
|
+
const bodyTemp = (0, _yonkerProtocol.readYonkerTemperature)(frame);
|
|
48
|
+
const now = this.now();
|
|
49
|
+
if (bodyTemp === undefined || this.lastTemperature?.value === bodyTemp && now.getTime() - this.lastTemperature.at < REPEAT_WINDOW_MS) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
this.lastTemperature = {
|
|
53
|
+
value: bodyTemp,
|
|
54
|
+
at: now.getTime()
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
measurementTypeKey: _core.MeasurementTypeKey.temperature,
|
|
58
|
+
bodyTemp,
|
|
59
|
+
recordedAt: now
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
now = () => this.params.now?.() ?? new Date();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** What the scale's frames ask for. */
|
|
66
|
+
exports.YonkerSequencer = YonkerSequencer;
|
|
67
|
+
const SCALE = {
|
|
68
|
+
weight: 0x02,
|
|
69
|
+
completed: 0x0a,
|
|
70
|
+
completedAck: 0x0f,
|
|
71
|
+
timeRequest: 0x38
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** The id word long frames carry until the scale has sent its own. */
|
|
75
|
+
const DEFAULT_SCALE_ID = 0x0032;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* The AiLink scale: disables its encryption, then two seconds later sets the time and kilograms
|
|
79
|
+
* and asks for its software info, as MedM does. Weight frames repeat while it settles; the last
|
|
80
|
+
* one is reported when the scale says the measurement is complete. Body composition is not read.
|
|
81
|
+
*/
|
|
82
|
+
class YonkerScaleSequencer {
|
|
83
|
+
id = DEFAULT_SCALE_ID;
|
|
84
|
+
recorded = false;
|
|
85
|
+
constructor(params) {
|
|
86
|
+
this.params = params;
|
|
87
|
+
}
|
|
88
|
+
initialCommands = () => [this.short((0, _yonkerProtocol.shortFrame)(0x42, [0x01, 0x00])), this.short((0, _yonkerProtocol.scaleSetTimeCommand)(this.now()), 2_000), this.long(0x81, [0x01]), this.long(0x0e)];
|
|
89
|
+
isNormalDisconnect = () => this.recorded;
|
|
90
|
+
nextCommand = frame => {
|
|
91
|
+
this.id = (0, _yonkerProtocol.idOf)(frame) || this.id;
|
|
92
|
+
switch ((0, _yonkerProtocol.commandOf)(frame)) {
|
|
93
|
+
case SCALE.weight:
|
|
94
|
+
this.pendingWeight = (0, _yonkerProtocol.readScaleWeight)((0, _yonkerProtocol.bodyOf)(frame));
|
|
95
|
+
return undefined;
|
|
96
|
+
case SCALE.completedAck:
|
|
97
|
+
this.report();
|
|
98
|
+
return [this.long(0x84, [0x00])];
|
|
99
|
+
case SCALE.completed:
|
|
100
|
+
this.report();
|
|
101
|
+
return undefined;
|
|
102
|
+
case SCALE.timeRequest:
|
|
103
|
+
return [this.short((0, _yonkerProtocol.scaleSetTimeCommand)(this.now()))];
|
|
104
|
+
default:
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
report = () => {
|
|
109
|
+
const bodyWeight = this.pendingWeight;
|
|
110
|
+
this.pendingWeight = undefined;
|
|
111
|
+
if (bodyWeight !== undefined) {
|
|
112
|
+
this.recorded = true;
|
|
113
|
+
this.params.onResult({
|
|
114
|
+
caseType: _caseType.CaseType.RESULT,
|
|
115
|
+
measurementTypeKey: _core.MeasurementTypeKey.bodyWeight,
|
|
116
|
+
bodyWeight,
|
|
117
|
+
recordedAt: this.now()
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
now = () => this.params.now?.() ?? new Date();
|
|
122
|
+
long = (command, payload = []) => ({
|
|
123
|
+
serviceUuid: _yonkerProtocol.AILINK_GATT.service,
|
|
124
|
+
characteristicUuid: _yonkerProtocol.AILINK_GATT.writeLong,
|
|
125
|
+
frame: (0, _yonkerProtocol.longFrame)(this.id, command, payload)
|
|
126
|
+
});
|
|
127
|
+
short = (frame, delayBeforeWriteMs) => ({
|
|
128
|
+
serviceUuid: _yonkerProtocol.AILINK_GATT.service,
|
|
129
|
+
characteristicUuid: _yonkerProtocol.AILINK_GATT.writeShort,
|
|
130
|
+
frame,
|
|
131
|
+
...(delayBeforeWriteMs ? {
|
|
132
|
+
delayBeforeWriteMs
|
|
133
|
+
} : {})
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
exports.YonkerScaleSequencer = YonkerScaleSequencer;
|
|
137
|
+
//# sourceMappingURL=yonker.sequencer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_core","require","_caseType","_yonkerProtocol","REPEAT_WINDOW_MS","YonkerSequencer","recorded","constructor","params","initialCommands","kind","serviceUuid","YONKER_GATT","timeService","characteristicUuid","timeWrite","frame","bpmSetTimeCommand","now","isNormalDisconnect","nextCommand","reading","bloodPressure","temperature","onResult","caseType","CaseType","RESULT","undefined","readYonkerBloodPressure","measurementTypeKey","MeasurementTypeKey","bodyTemp","readYonkerTemperature","lastTemperature","value","getTime","at","recordedAt","Date","exports","SCALE","weight","completed","completedAck","timeRequest","DEFAULT_SCALE_ID","YonkerScaleSequencer","id","short","shortFrame","scaleSetTimeCommand","long","idOf","commandOf","pendingWeight","readScaleWeight","bodyOf","report","bodyWeight","command","payload","AILINK_GATT","service","writeLong","longFrame","delayBeforeWriteMs","writeShort"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/yonker/yonker.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAIA,IAAAE,eAAA,GAAAF,OAAA;AAeA;AACA,MAAMG,gBAAgB,GAAG,MAAM;;AAE/B;AACA;AACA;AACA;AACA,MAAMC,eAAe,CAA6B;EACxCC,QAAQ,GAAG,KAAK;EAGjBC,WAAWA,CACCC,MAIhB,EACD;IAAA,KALiBA,MAIhB,GAJgBA,MAIhB;EACA;EAEIC,eAAe,GAAGA,CAAA,KACvB,IAAI,CAACD,MAAM,CAACE,IAAI,KAA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I,CAAC,CAAC;EAEnDa,IAAI,GAAGA,CAACQ,OAAe,EAAEC,OAA0B,GAAG,EAAE,MAAqB;IACnFlD,WAAW,EAAEmD,2BAAW,CAACC,OAAO;IAChCjD,kBAAkB,EAAEgD,2BAAW,CAACE,SAAS;IACzChD,KAAK,EAAE,IAAAiD,yBAAS,EAAC,IAAI,CAACjB,EAAE,EAAEY,OAAO,EAAEC,OAAO;EAC5C,CAAC,CAAC;EAEMZ,KAAK,GAAGA,CAACjC,KAAwB,EAAEkD,kBAA2B,MAAqB;IACzFvD,WAAW,EAAEmD,2BAAW,CAACC,OAAO;IAChCjD,kBAAkB,EAAEgD,2BAAW,CAACK,UAAU;IAC1CnD,KAAK;IACL,IAAIkD,kBAAkB,GAAG;MAAEA;IAAmB,CAAC,GAAG,CAAC,CAAC;EACtD,CAAC,CAAC;AACJ;AAAC1B,OAAA,CAAAO,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -62,6 +62,39 @@ let IntegratedDevices = exports.IntegratedDevices = /*#__PURE__*/function (Integ
|
|
|
62
62
|
IntegratedDevices["SA10AW_PU"] = "SA10AW-PU";
|
|
63
63
|
IntegratedDevices["PF10BW_VE"] = "PF10BW-VE";
|
|
64
64
|
IntegratedDevices["TRASENSE_S9"] = "Trasense S9";
|
|
65
|
+
IntegratedDevices["TRANSTEK_BPM"] = "Transtek BPM";
|
|
66
|
+
IntegratedDevices["TRANSTEK_SCALE"] = "Transtek Scale";
|
|
67
|
+
IntegratedDevices["TRANSTEK_SCALE_1525"] = "Transtek Scale 1525";
|
|
68
|
+
IntegratedDevices["TRANSTEK_TRACKER"] = "Transtek Tracker";
|
|
69
|
+
IntegratedDevices["FAMIDOC_BPM"] = "Famidoc BPM";
|
|
70
|
+
IntegratedDevices["FAMIDOC_IR_THERMOMETER"] = "Famidoc IR Thermometer";
|
|
71
|
+
IntegratedDevices["FAMIDOC_CONTACT_THERMOMETER"] = "Famidoc Contact Thermometer";
|
|
72
|
+
IntegratedDevices["AOJ_BPM"] = "AOJ BPM";
|
|
73
|
+
IntegratedDevices["AOJ_BPM_FFF0"] = "AOJ BPM FFF0";
|
|
74
|
+
IntegratedDevices["AOJ_70B"] = "AOJ-70B";
|
|
75
|
+
IntegratedDevices["JUMPER_OXIMETER"] = "Jumper Oximeter";
|
|
76
|
+
IntegratedDevices["JUMPER_BPM"] = "Jumper BPM";
|
|
77
|
+
IntegratedDevices["JUMPER_THERMOMETER"] = "Jumper Thermometer";
|
|
78
|
+
IntegratedDevices["JOYTECH_BPM"] = "Joytech BPM";
|
|
79
|
+
IntegratedDevices["JOYTECH_THERMOMETER"] = "Joytech Thermometer";
|
|
80
|
+
IntegratedDevices["AND_BPM"] = "A&D BPM";
|
|
81
|
+
IntegratedDevices["AND_BPM_CTS"] = "A&D BPM CTS";
|
|
82
|
+
IntegratedDevices["AND_SCALE"] = "A&D Scale";
|
|
83
|
+
IntegratedDevices["YONKER_OXIMETER"] = "Yonker Oximeter";
|
|
84
|
+
IntegratedDevices["YONKER_BPM"] = "Yonker BPM";
|
|
85
|
+
IntegratedDevices["YONKER_THERMOMETER"] = "Yonker Thermometer";
|
|
86
|
+
IntegratedDevices["YONKER_SCALE"] = "Yonker Scale";
|
|
87
|
+
IntegratedDevices["YONKER_80B"] = "Yonker 80B";
|
|
88
|
+
IntegratedDevices["COFOE_BPM"] = "Cofoe BPM";
|
|
89
|
+
IntegratedDevices["COFOE_BPM_HISTORY"] = "Cofoe BPM History";
|
|
90
|
+
IntegratedDevices["COFOE_GLUCOMETER"] = "Cofoe Glucometer";
|
|
91
|
+
IntegratedDevices["COFOE_GLUCOMETER_CGH25"] = "Cofoe Glucometer CGH25";
|
|
92
|
+
IntegratedDevices["COFOE_THERMOMETER"] = "Cofoe Thermometer";
|
|
93
|
+
IntegratedDevices["TAIDOC_MULTI"] = "TaiDoc Multi";
|
|
94
|
+
IntegratedDevices["TAIDOC_BPM"] = "TaiDoc BPM";
|
|
95
|
+
IntegratedDevices["TAIDOC_THERMOMETER"] = "TaiDoc Thermometer";
|
|
96
|
+
IntegratedDevices["TAIDOC_OXIMETER"] = "TaiDoc Oximeter";
|
|
97
|
+
IntegratedDevices["TAIDOC_SCALE"] = "TaiDoc Scale";
|
|
65
98
|
return IntegratedDevices;
|
|
66
99
|
}({});
|
|
67
100
|
//# sourceMappingURL=integrated-devices.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["IntegratedDevices","exports"],"sourceRoot":"../../../../../src","sources":["modules/bt-management/types/integrated-devices.ts"],"mappings":";;;;;;IAAYA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;E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