@ovok/native 1.16.1-rc.4 → 1.16.1-rc.6
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/auth/google-return-page/index.js +24 -0
- package/lib/commonjs/modules/auth/google-return-page/index.js.map +1 -0
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js +15 -0
- package/lib/commonjs/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
- package/lib/commonjs/modules/auth/index.js +21 -10
- package/lib/commonjs/modules/auth/index.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +73 -0
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js +73 -0
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
- package/lib/commonjs/modules/auth/sign-in/index.js +24 -0
- package/lib/commonjs/modules/auth/sign-in/index.js.map +1 -1
- package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js +90 -0
- package/lib/commonjs/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js +89 -0
- package/lib/commonjs/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
- package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js +21 -0
- package/lib/commonjs/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
- package/lib/commonjs/modules/auth/utils/sign-out-google.web.js +10 -0
- package/lib/commonjs/modules/auth/utils/sign-out-google.web.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
- package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
- 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/blood-glucose/telebgm.protocol.js +98 -0
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +127 -0
- package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
- package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +10 -2
- package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
- package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +2 -2
- package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
- package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
- package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js +23 -0
- package/lib/commonjs/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
- package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +13 -0
- package/lib/commonjs/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js +7 -7
- package/lib/commonjs/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +8 -3
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js +47 -0
- package/lib/commonjs/modules/data-sync/utils/default-health-coding.js.map +1 -0
- package/lib/commonjs/modules/data-sync/utils/health-units.js +6 -1
- package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js +35 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js +3 -30
- package/lib/commonjs/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js +2 -2
- package/lib/commonjs/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
- package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +28 -0
- package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/index.js +208 -0
- package/lib/commonjs/modules/next/bluetooth/web/index.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js +143 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js +43 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js +21 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js +133 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js +28 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js +37 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js +83 -0
- package/lib/commonjs/modules/next/bluetooth/web/web-gatt.js.map +1 -0
- package/lib/commonjs/modules/next/breathing-exercise/index.js +17 -0
- package/lib/commonjs/modules/next/breathing-exercise/index.js.map +1 -0
- package/lib/commonjs/modules/next/cms/index.js +17 -0
- package/lib/commonjs/modules/next/cms/index.js.map +1 -0
- package/lib/commonjs/modules/next/content/index.js +17 -0
- package/lib/commonjs/modules/next/content/index.js.map +1 -0
- package/lib/commonjs/modules/next/diary/index.js +17 -0
- package/lib/commonjs/modules/next/diary/index.js.map +1 -0
- package/lib/commonjs/modules/next/image/index.js +17 -0
- package/lib/commonjs/modules/next/image/index.js.map +1 -0
- package/lib/commonjs/modules/next/journal/index.js +17 -0
- package/lib/commonjs/modules/next/journal/index.js.map +1 -0
- package/lib/commonjs/modules/next/language-switcher/index.js +17 -0
- package/lib/commonjs/modules/next/language-switcher/index.js.map +1 -0
- package/lib/commonjs/modules/next/measurement/index.js +17 -0
- package/lib/commonjs/modules/next/measurement/index.js.map +1 -0
- package/lib/commonjs/modules/next/observation-detail/index.js +17 -0
- package/lib/commonjs/modules/next/observation-detail/index.js.map +1 -0
- package/lib/commonjs/modules/next/patient/index.js +17 -0
- package/lib/commonjs/modules/next/patient/index.js.map +1 -0
- package/lib/commonjs/modules/next/pdf/index.js +17 -0
- package/lib/commonjs/modules/next/pdf/index.js.map +1 -0
- package/lib/commonjs/modules/next/picker-sheet/index.js +17 -0
- package/lib/commonjs/modules/next/picker-sheet/index.js.map +1 -0
- package/lib/commonjs/modules/next/progress-bar/index.js +17 -0
- package/lib/commonjs/modules/next/progress-bar/index.js.map +1 -0
- package/lib/commonjs/modules/next/progress-ring/index.js +17 -0
- package/lib/commonjs/modules/next/progress-ring/index.js.map +1 -0
- package/lib/commonjs/modules/next/setting/index.js +17 -0
- package/lib/commonjs/modules/next/setting/index.js.map +1 -0
- package/lib/commonjs/modules/next/tab/index.js +17 -0
- package/lib/commonjs/modules/next/tab/index.js.map +1 -0
- package/lib/commonjs/modules/next/theme/index.js +17 -0
- package/lib/commonjs/modules/next/theme/index.js.map +1 -0
- package/lib/commonjs/modules/next/tile/index.js +17 -0
- package/lib/commonjs/modules/next/tile/index.js.map +1 -0
- package/lib/commonjs/modules/next/ui/index.js +17 -0
- package/lib/commonjs/modules/next/ui/index.js.map +1 -0
- package/lib/module/modules/auth/google-return-page/index.js +21 -0
- package/lib/module/modules/auth/google-return-page/index.js.map +1 -0
- package/lib/module/modules/auth/hooks/use-social-sign-in.web.js +10 -0
- package/lib/module/modules/auth/hooks/use-social-sign-in.web.js.map +1 -0
- package/lib/module/modules/auth/index.js +2 -1
- package/lib/module/modules/auth/index.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +1 -1
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js +67 -0
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login-button.web.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/apple-login.js.map +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js +68 -0
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login-button.web.js.map +1 -0
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js +1 -1
- package/lib/module/modules/auth/sign-in/components/social-logins/google-login.js.map +1 -1
- package/lib/module/modules/auth/sign-in/index.js +2 -0
- package/lib/module/modules/auth/sign-in/index.js.map +1 -1
- package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js +84 -0
- package/lib/module/modules/auth/sign-in/utils/apple-web-sign-in.js.map +1 -0
- package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js +84 -0
- package/lib/module/modules/auth/sign-in/utils/google-redirect-sign-in.js.map +1 -0
- package/lib/module/modules/auth/sign-in/utils/jwt-claims.js +17 -0
- package/lib/module/modules/auth/sign-in/utils/jwt-claims.js.map +1 -0
- package/lib/module/modules/auth/utils/sign-out-google.web.js +5 -0
- package/lib/module/modules/auth/utils/sign-out-google.web.js.map +1 -0
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +3 -2
- package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +64 -44
- 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/blood-glucose/telebgm.protocol.js +91 -0
- package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js +123 -0
- package/lib/module/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map +1 -0
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +12 -7
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js +16 -1
- package/lib/module/modules/bt-management/services/devices/bp2/bp2.history-sequencer.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +10 -2
- package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +2 -7
- package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +2 -2
- package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +74 -17
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +4 -4
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js +3 -7
- package/lib/module/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.js.map +1 -1
- package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js +18 -0
- package/lib/module/modules/bt-management/utils/calculate-crc-16-modbus.js.map +1 -0
- package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js +8 -0
- package/lib/module/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.js.map +1 -0
- package/lib/module/modules/data-sync/services/managers/data-processor.js +7 -7
- package/lib/module/modules/data-sync/services/managers/data-processor.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +8 -3
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/default-health-coding.js +44 -0
- package/lib/module/modules/data-sync/utils/default-health-coding.js.map +1 -0
- package/lib/module/modules/data-sync/utils/health-units.js +6 -1
- package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js +30 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-peripheral.js.map +1 -0
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js +2 -27
- package/lib/module/modules/next/bluetooth/ble-plx/ble-scanner.js.map +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js +1 -1
- package/lib/module/modules/next/bluetooth/ble-plx/legacy-driver.js.map +1 -1
- package/lib/module/modules/next/bluetooth/react-native/ovok-sink.js.map +1 -1
- package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js +25 -0
- package/lib/module/modules/next/bluetooth/web/create-web-bluetooth-runtime.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/index.js +28 -0
- package/lib/module/modules/next/bluetooth/web/index.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-device.js +140 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-device.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js +39 -0
- package/lib/module/modules/next/bluetooth/web/web-ble-shapes.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js +18 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-permissions.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js +128 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-scanner.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js +25 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-services.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js +29 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth-values.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js +2 -0
- package/lib/module/modules/next/bluetooth/web/web-bluetooth.types.js.map +1 -0
- package/lib/module/modules/next/bluetooth/web/web-gatt.js +79 -0
- package/lib/module/modules/next/bluetooth/web/web-gatt.js.map +1 -0
- package/lib/module/modules/next/breathing-exercise/index.js +5 -0
- package/lib/module/modules/next/breathing-exercise/index.js.map +1 -0
- package/lib/module/modules/next/cms/index.js +5 -0
- package/lib/module/modules/next/cms/index.js.map +1 -0
- package/lib/module/modules/next/content/index.js +5 -0
- package/lib/module/modules/next/content/index.js.map +1 -0
- package/lib/module/modules/next/diary/index.js +5 -0
- package/lib/module/modules/next/diary/index.js.map +1 -0
- package/lib/module/modules/next/image/index.js +5 -0
- package/lib/module/modules/next/image/index.js.map +1 -0
- package/lib/module/modules/next/journal/index.js +5 -0
- package/lib/module/modules/next/journal/index.js.map +1 -0
- package/lib/module/modules/next/language-switcher/index.js +5 -0
- package/lib/module/modules/next/language-switcher/index.js.map +1 -0
- package/lib/module/modules/next/measurement/index.js +5 -0
- package/lib/module/modules/next/measurement/index.js.map +1 -0
- package/lib/module/modules/next/observation-detail/index.js +5 -0
- package/lib/module/modules/next/observation-detail/index.js.map +1 -0
- package/lib/module/modules/next/patient/index.js +5 -0
- package/lib/module/modules/next/patient/index.js.map +1 -0
- package/lib/module/modules/next/pdf/index.js +5 -0
- package/lib/module/modules/next/pdf/index.js.map +1 -0
- package/lib/module/modules/next/picker-sheet/index.js +5 -0
- package/lib/module/modules/next/picker-sheet/index.js.map +1 -0
- package/lib/module/modules/next/progress-bar/index.js +5 -0
- package/lib/module/modules/next/progress-bar/index.js.map +1 -0
- package/lib/module/modules/next/progress-ring/index.js +5 -0
- package/lib/module/modules/next/progress-ring/index.js.map +1 -0
- package/lib/module/modules/next/setting/index.js +5 -0
- package/lib/module/modules/next/setting/index.js.map +1 -0
- package/lib/module/modules/next/tab/index.js +5 -0
- package/lib/module/modules/next/tab/index.js.map +1 -0
- package/lib/module/modules/next/theme/index.js +5 -0
- package/lib/module/modules/next/theme/index.js.map +1 -0
- package/lib/module/modules/next/tile/index.js +5 -0
- package/lib/module/modules/next/tile/index.js.map +1 -0
- package/lib/module/modules/next/ui/index.js +5 -0
- package/lib/module/modules/next/ui/index.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/auth/google-return-page/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/register.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
- 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/cofoe/cofoe.records.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
- package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
- package/lib/typescript/commonjs/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts +41 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/cms/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/content/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/content/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/diary/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/image/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/image/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/journal/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/language-switcher/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/measurement/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/observation-detail/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/patient/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/pdf/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/picker-sheet/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/progress-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/setting/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/tab/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/theme/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/tile/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/next/ui/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts +8 -0
- package/lib/typescript/module/src/modules/auth/google-return-page/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts +7 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-social-sign-in.web.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/register.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/components/sign-in.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login-button.web.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/apple-login.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login-button.web.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/google-login.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/components/social-logins/social-logins.d.ts +2 -2
- package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/sign-in/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts +13 -0
- package/lib/typescript/module/src/modules/auth/sign-in/types/apple-login-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts +13 -0
- package/lib/typescript/module/src/modules/auth/sign-in/types/google-login-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts +17 -0
- package/lib/typescript/module/src/modules/auth/sign-in/utils/apple-web-sign-in.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts +14 -0
- package/lib/typescript/module/src/modules/auth/sign-in/utils/google-redirect-sign-in.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts +9 -0
- package/lib/typescript/module/src/modules/auth/sign-in/utils/jwt-claims.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts +3 -0
- package/lib/typescript/module/src/modules/auth/utils/sign-out-google.web.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts +34 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts +32 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts +7 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.history-sequencer.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +2 -0
- 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/cofoe/cofoe.records.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +2 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts +9 -3
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.wbp02.protocol.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +5 -2
- package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-16-modbus.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts +3 -0
- package/lib/typescript/module/src/modules/bt-management/utils/tenths-mmol-to-mg-per-dl.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/services/managers/data-processor.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-sync-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts +10 -0
- package/lib/typescript/module/src/modules/data-sync/utils/default-health-coding.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-link.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-peripheral.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts +3 -7
- package/lib/typescript/module/src/modules/next/bluetooth/ble-plx/ble-scanner.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts +2 -2
- package/lib/typescript/module/src/modules/next/bluetooth/react-native/ovok-sink.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts +23 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts +41 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts +53 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-device.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts +27 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-ble-shapes.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts +8 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-permissions.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts +29 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-scanner.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts +10 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-services.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts +9 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth-values.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts +56 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-bluetooth.types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts +27 -0
- package/lib/typescript/module/src/modules/next/bluetooth/web/web-gatt.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/breathing-exercise/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/cms/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/cms/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/content/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/content/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/diary/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/diary/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/image/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/image/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/journal/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/journal/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/language-switcher/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/measurement/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/measurement/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/observation-detail/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/patient/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/patient/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/pdf/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/pdf/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/picker-sheet/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/progress-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/progress-ring/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/setting/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/setting/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/tab/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/tab/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/theme/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/theme/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/tile/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/tile/index.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/next/ui/index.d.ts +3 -0
- package/lib/typescript/module/src/modules/next/ui/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.jwtClaims = void 0;
|
|
7
|
+
/** The claims web sign-in reads from a provider's JWT. */
|
|
8
|
+
|
|
9
|
+
const asClaims = value => typeof value === "object" && value !== null ? value : {};
|
|
10
|
+
|
|
11
|
+
/** A JWT's claims, read without checking the signature; Ovok verifies the token itself. */
|
|
12
|
+
const jwtClaims = jwt => {
|
|
13
|
+
try {
|
|
14
|
+
const payload = (jwt.split(".")[1] ?? "").replace(/-/g, "+").replace(/_/g, "/");
|
|
15
|
+
return asClaims(JSON.parse(atob(payload)));
|
|
16
|
+
} catch {
|
|
17
|
+
return {};
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
exports.jwtClaims = jwtClaims;
|
|
21
|
+
//# sourceMappingURL=jwt-claims.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["asClaims","value","jwtClaims","jwt","payload","split","replace","JSON","parse","atob","exports"],"sourceRoot":"../../../../../../src","sources":["modules/auth/sign-in/utils/jwt-claims.ts"],"mappings":";;;;;;AAAA;;AAMA,MAAMA,QAAQ,GAAIC,KAAc,IAC9B,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,KAAK,IAAI,GAAIA,KAAK,GAAiB,CAAC,CAAC;;AAEzE;AACA,MAAMC,SAAS,GAAIC,GAAW,IAAgB;EAC5C,IAAI;IACF,MAAMC,OAAO,GAAG,CAACD,GAAG,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAEC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;IAE/E,OAAON,QAAQ,CAACO,IAAI,CAACC,KAAK,CAACC,IAAI,CAACL,OAAO,CAAC,CAAC,CAAC;EAC5C,CAAC,CAAC,MAAM;IACN,OAAO,CAAC,CAAC;EACX;AACF,CAAC;AAACM,OAAA,CAAAR,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.signOutGoogleIfNeeded = void 0;
|
|
7
|
+
/** The web keeps no Google account in the app, so there is nothing to clear. */
|
|
8
|
+
const signOutGoogleIfNeeded = async () => undefined;
|
|
9
|
+
exports.signOutGoogleIfNeeded = signOutGoogleIfNeeded;
|
|
10
|
+
//# sourceMappingURL=sign-out-google.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["signOutGoogleIfNeeded","undefined","exports"],"sourceRoot":"../../../../../src","sources":["modules/auth/utils/sign-out-google.web.ts"],"mappings":";;;;;;AAAA;AACO,MAAMA,qBAAqB,GAAG,MAAAA,CAAA,KAA2BC,SAAS;AAACC,OAAA,CAAAF,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@ const HEX_BYTE = /^[0-9a-f]{2}$/;
|
|
|
13
13
|
const MAX_OPCODE = 0xff;
|
|
14
14
|
const MAX_DEVICE_TYPE = 0xffff;
|
|
15
15
|
const MAX_POLL_INTERVAL_MS = 6_000_000;
|
|
16
|
+
const ECG_FILE_DECODERS = ["viatom-compressed", "raw-int16"];
|
|
16
17
|
const assertFileTransfer = (id, fileTransfer) => {
|
|
17
18
|
if (fileTransfer === undefined) {
|
|
18
19
|
return undefined;
|
|
@@ -109,8 +110,8 @@ const compileCustomLepu = (id, spec, serviceUuids) => {
|
|
|
109
110
|
const pollIntervalMs = assertPollInterval(id, lepu.pollIntervalMs);
|
|
110
111
|
const fileTransfer = assertFileTransfer(id, lepu.fileTransfer);
|
|
111
112
|
const ecgFileDecoder = lepu.ecgFileDecoder;
|
|
112
|
-
if (ecgFileDecoder !== undefined && ecgFileDecoder
|
|
113
|
-
throw (0, _customDeviceError.customDeviceError)(id, "lepu.ecgFileDecoder", `is "${String(ecgFileDecoder)}"; expected "
|
|
113
|
+
if (ecgFileDecoder !== undefined && !ECG_FILE_DECODERS.includes(ecgFileDecoder)) {
|
|
114
|
+
throw (0, _customDeviceError.customDeviceError)(id, "lepu.ecgFileDecoder", `is "${String(ecgFileDecoder)}"; expected "viatom-compressed"`);
|
|
114
115
|
}
|
|
115
116
|
const requestStartByte = lepu.requestStartByte ?? startBytes[0];
|
|
116
117
|
if (!requestStartByte || !HEX_BYTE.test(requestStartByte.toLowerCase())) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_assertIntegerInRange","require","_customDeviceError","_normalizeBleUuid","HEX_BYTE","MAX_OPCODE","MAX_DEVICE_TYPE","MAX_POLL_INTERVAL_MS","assertFileTransfer","id","fileTransfer","undefined","customDeviceError","String","assertProtocol","protocol","assertClockSyncProtocol","assertStartBytes","startBytes","Array","isArray","length","map","byte","index","normalized","toLowerCase","test","assertDeviceTypes","deviceTypes","deviceType","Number","isInteger","assertPollCommand","lepu","pollCommand","assertIntegerInRange","assertPollInterval","interval","compileCustomLepu","spec","serviceUuids","services","some","service","write","clockSyncProtocol","expectedDeviceTypes","pollIntervalMs","ecgFileDecoder","requestStartByte","serviceUuid","normalizeBleUuid","
|
|
1
|
+
{"version":3,"names":["_assertIntegerInRange","require","_customDeviceError","_normalizeBleUuid","HEX_BYTE","MAX_OPCODE","MAX_DEVICE_TYPE","MAX_POLL_INTERVAL_MS","ECG_FILE_DECODERS","assertFileTransfer","id","fileTransfer","undefined","customDeviceError","String","assertProtocol","protocol","assertClockSyncProtocol","assertStartBytes","startBytes","Array","isArray","length","map","byte","index","normalized","toLowerCase","test","assertDeviceTypes","deviceTypes","deviceType","Number","isInteger","assertPollCommand","lepu","pollCommand","assertIntegerInRange","assertPollInterval","interval","compileCustomLepu","spec","serviceUuids","services","some","service","write","clockSyncProtocol","expectedDeviceTypes","pollIntervalMs","ecgFileDecoder","includes","requestStartByte","serviceUuid","normalizeBleUuid","rejectEncryptionAtBytes","writeWithoutResponse","Boolean","setClockBeforeInfo","manufacturerDataProtocol","characteristicUuid","exports"],"sourceRoot":"../../../../../../src","sources":["modules/bt-management/services/custom/compile-custom-lepu.ts"],"mappings":";;;;;;AAKA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AAPA;;AASA,MAAMG,QAAQ,GAAG,eAAe;AAChC,MAAMC,UAAU,GAAG,IAAI;AACvB,MAAMC,eAAe,GAAG,MAAM;AAC9B,MAAMC,oBAAoB,GAAG,SAAS;AAEtC,MAAMC,iBAAqC,GAAG,CAAC,mBAAmB,EAAE,WAAW,CAAC;AAEhF,MAAMC,kBAAkB,GAAGA,CACzBC,EAAU,EACVC,YAAqB,KACiB;EACtC,IAAIA,YAAY,KAAKC,SAAS,EAAE;IAC9B,OAAOA,SAAS;EAClB;EAEA,IACED,YAAY,KAAK,KAAK,IACtBA,YAAY,KAAK,KAAK,IACtBA,YAAY,KAAK,KAAK,EACtB;IACA,MAAM,IAAAE,oCAAiB,EACrBH,EAAE,EACF,mBAAmB,EACnB,OAAOI,MAAM,CAACH,YAAY,CAAC,mCAC7B,CAAC;EACH;EAEA,OAAOA,YAAY;AACrB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CAAC,CAAC,GAAG;MAAED;IAAa,CAAC,CAAC;IACvD,IAAIuC,cAAc,KAAKtC,SAAS,GAAG,CAAC,CAAC,GAAG;MAAEsC;IAAe,CAAC,CAAC;IAE3D/B,UAAU;IACViC,gBAAgB,EAAEA,gBAAgB,CAACzB,WAAW,CAAC,CAAC;IAChDqB,mBAAmB;IACnB,IAAIZ,WAAW,KAAKxB,SAAS,GAAG,CAAC,CAAC,GAAG;MAAEwB;IAAY,CAAC,CAAC;IACrD,IAAIa,cAAc,KAAKrC,SAAS,GAAG,CAAC,CAAC,GAAG;MAAEqC;IAAe,CAAC,CAAC;IAC3D,IAAId,IAAI,CAACqB,oBAAoB,KAAK5C,SAAS,GACvC,CAAC,CAAC,GACF;MAAE4C,oBAAoB,EAAEC,OAAO,CAACtB,IAAI,CAACqB,oBAAoB;IAAE,CAAC,CAAC;IACjE,IAAIrB,IAAI,CAACuB,kBAAkB,KAAK9C,SAAS,GACrC,CAAC,CAAC,GACF;MAAE8C,kBAAkB,EAAED,OAAO,CAACtB,IAAI,CAACuB,kBAAkB;IAAE,CAAC,CAAC;IAC7D,IAAIvB,IAAI,CAACwB,wBAAwB,KAAK/C,SAAS,GAC3C,CAAC,CAAC,GACF;MAAE+C,wBAAwB,EAAExB,IAAI,CAACwB;IAAyB,CAAC,CAAC;IAChE,IAAIJ,uBAAuB,KAAK3C,SAAS,GACrC,CAAC,CAAC,GACF;MAAE2C,uBAAuB,EAAE,CAAC,GAAGA,uBAAuB;IAAE,CAAC,CAAC;IAC9DT,KAAK,EAAE;MACLO,WAAW;MACXO,kBAAkB,EAAE,IAAAN,kCAAgB,EAClC5C,EAAE,EACF,+BAA+B,EAC/ByB,IAAI,CAACW,KAAK,EAAEc,kBACd;IACF;EACF,CAAC;AACH,CAAC;AAACC,OAAA,CAAArB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js
CHANGED
|
@@ -5,54 +5,64 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.BloodGlucoseDevice = void 0;
|
|
7
7
|
var _next = require("@ovok/core/next");
|
|
8
|
+
var _noParsingCases = require("../../../constants/no-parsing-cases.js");
|
|
8
9
|
var _caseType = require("../../../types/case-type.js");
|
|
9
10
|
var _integratedDevices = require("../../../types/integrated-devices.js");
|
|
10
|
-
var _hexToByte = require("../../../utils/hex-to-byte.js");
|
|
11
11
|
var _btManagedDevice = require("../bt-managed-device.js");
|
|
12
12
|
var _taidocProtocol = require("../taidoc/taidoc.protocol.js");
|
|
13
13
|
var _taidocRecords = require("../taidoc/taidoc.records.js");
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
var _telebgmProtocol = require("./telebgm.protocol.js");
|
|
15
|
+
var _telebgmSequencer = require("./telebgm.sequencer.js");
|
|
16
16
|
const GLUCOSE_REQUEST = (0, _taidocProtocol.taidocCommand)(_taidocProtocol.TAIDOC.readingResult).join("");
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
uuid:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
17
|
+
const TELEBGM_SERVICES = [{
|
|
18
|
+
uuid: _telebgmProtocol.TELEBGM_SERVICE,
|
|
19
|
+
monitorUuids: [{
|
|
20
|
+
uuid: _telebgmProtocol.TELEBGM_NOTIFY,
|
|
21
|
+
parsingModel: _noParsingCases.NO_PARSING_CASES
|
|
22
|
+
}]
|
|
23
|
+
}];
|
|
24
|
+
const taidocServices = device => [{
|
|
25
|
+
uuid: _taidocProtocol.TAIDOC_SERVICE,
|
|
26
|
+
monitorUuids: [{
|
|
27
|
+
uuid: _taidocProtocol.TAIDOC_CHARACTERISTIC,
|
|
28
|
+
parsingModel: {
|
|
29
|
+
caseValuePosition: [1],
|
|
30
|
+
cases: [...["46", ...(device === _integratedDevices.IntegratedDevices.GLUCOCHECK ? ["50"] : [])].map(caseValue => ({
|
|
31
|
+
caseType: _caseType.CaseType.OTHER,
|
|
32
|
+
caseValue,
|
|
33
|
+
parseDefinitions: []
|
|
34
|
+
})), {
|
|
35
|
+
measurementTypeKey: _next.MeasurementTypeKey.bloodGlucose,
|
|
36
|
+
caseType: _caseType.CaseType.RESULT,
|
|
37
|
+
caseValue: "26",
|
|
38
|
+
parseDefinitions: [{
|
|
39
|
+
name: "bloodGlucose",
|
|
40
|
+
parseType: "custom",
|
|
41
|
+
byteIndexes: [3, 2],
|
|
42
|
+
parseReference: 16,
|
|
43
|
+
customParserDefinition: value => {
|
|
44
|
+
const raw = parseInt(value, 16);
|
|
45
|
+
return device === _integratedDevices.IntegratedDevices.TAIDOC_GLUCOSE ? Number((raw * 18).toFixed(2)) : raw;
|
|
46
|
+
}
|
|
46
47
|
}]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
}]
|
|
49
|
+
}
|
|
50
|
+
}],
|
|
51
|
+
writeUuid: {
|
|
52
|
+
uuid: _taidocProtocol.TAIDOC_CHARACTERISTIC,
|
|
53
|
+
mainCommandUuid: GLUCOSE_REQUEST
|
|
54
|
+
}
|
|
55
|
+
}];
|
|
56
|
+
const writesWithoutResponse = async device => {
|
|
57
|
+
try {
|
|
58
|
+
const characteristics = await device.characteristicsForService(_telebgmProtocol.TELEBGM_SERVICE);
|
|
59
|
+
const write = characteristics.find(({
|
|
60
|
+
uuid
|
|
61
|
+
}) => uuid.toLowerCase() === _telebgmProtocol.TELEBGM_WRITE);
|
|
62
|
+
return write?.isWritableWithResponse === false && write.isWritableWithoutResponse;
|
|
63
|
+
} catch {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
56
66
|
};
|
|
57
67
|
|
|
58
68
|
/** Decodes the legacy TaiDoc, GlucoCheck Gold and TeleBGM glucose protocols. */
|
|
@@ -60,16 +70,26 @@ class BloodGlucoseDevice extends _btManagedDevice.BTManagedDevice {
|
|
|
60
70
|
stuckDataTimeout = 60_000;
|
|
61
71
|
constructor(device, params) {
|
|
62
72
|
super(device, params);
|
|
63
|
-
|
|
73
|
+
if (params.deviceName !== _integratedDevices.IntegratedDevices.BGM) {
|
|
74
|
+
this.mainServices = taidocServices(params.deviceName);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
this.mainServices = TELEBGM_SERVICES;
|
|
78
|
+
this.frameReader = new _telebgmProtocol.TeleBgmFrameReader();
|
|
79
|
+
this.createCommandSequencer = () => new _telebgmSequencer.TeleBgmSequencer({
|
|
80
|
+
onResult: this.reportResult,
|
|
81
|
+
writesWithoutResponse: () => writesWithoutResponse(device),
|
|
82
|
+
clockSync: params.clockSync
|
|
83
|
+
});
|
|
64
84
|
}
|
|
65
|
-
validatePackage = pkg => pkg.length >=
|
|
85
|
+
validatePackage = pkg => pkg.length >= 8;
|
|
66
86
|
handleSuccessResult(result, frame) {
|
|
67
87
|
if (result.caseType !== _caseType.CaseType.RESULT || result.bloodGlucose === 0) {
|
|
68
88
|
return;
|
|
69
89
|
}
|
|
70
90
|
|
|
71
91
|
// A ketone, cholesterol or control-solution record decodes to a number too; it is not glucose.
|
|
72
|
-
if (
|
|
92
|
+
if (!(0, _taidocRecords.isPatientGlucoseRecord)(frame)) {
|
|
73
93
|
return;
|
|
74
94
|
}
|
|
75
95
|
this.onResult?.(result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_next","require","
|
|
1
|
+
{"version":3,"names":["_next","require","_noParsingCases","_caseType","_integratedDevices","_btManagedDevice","_taidocProtocol","_taidocRecords","_telebgmProtocol","_telebgmSequencer","GLUCOSE_REQUEST","taidocCommand","TAIDOC","readingResult","join","TELEBGM_SERVICES","uuid","TELEBGM_SERVICE","monitorUuids","TELEBGM_NOTIFY","parsingModel","NO_PARSING_CASES","taidocServices","device","TAIDOC_SERVICE","TAIDOC_CHARACTERISTIC","caseValuePosition","cases","IntegratedDevices","GLUCOCHECK","map","caseValue","caseType","CaseType","OTHER","parseDefinitions","measurementTypeKey","MeasurementTypeKey","bloodGlucose","RESULT","name","parseType","byteIndexes","parseReference","customParserDefinition","value","raw","parseInt","TAIDOC_GLUCOSE","Number","toFixed","writeUuid","mainCommandUuid","writesWithoutResponse","characteristics","characteristicsForService","write","find","toLowerCase","TELEBGM_WRITE","isWritableWithResponse","isWritableWithoutResponse","BloodGlucoseDevice","BTManagedDevice","stuckDataTimeout","constructor","params","deviceName","BGM","mainServices","frameReader","TeleBgmFrameReader","createCommandSequencer","TeleBgmSequencer","onResult","reportResult","clockSync","validatePackage","pkg","length","handleSuccessResult","result","frame","isPatientGlucoseRecord","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/blood-glucose/blood-glucose.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAGA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAGA,IAAAG,kBAAA,GAAAH,OAAA;AAGA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAMA,IAAAM,cAAA,GAAAN,OAAA;AAEA,IAAAO,gBAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AAEA,MAAMS,eAAe,GAAG,IAAAC,6BAAa,EAACC,sBAAM,CAACC,aAAa,CAAC,CAACC,IAAI,CAAC,EAAE,CAAC;AASpE,MAAMC,gBAA4B,GAAG,CACnC;EACEC,IAAI,EAAEC,gCAAe;EACrBC,YAA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KAAK,CAAC,EAAE;MACpE;IACF;;IAEA;IACA,IAAI,CAAC,IAAA6C,qCAAsB,EAACD,KAAK,CAAC,EAAE;MAClC;IACF;IAEA,IAAI,CAACR,QAAQ,GAAGO,MAA0D,CAAC;EAC7E;AACF;AAACG,OAAA,CAAAtB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.unframe = exports.telebgmFrame = exports.TeleBgmFrameReader = exports.TELEBGM_WRITE = exports.TELEBGM_SERVICE = exports.TELEBGM_PARAMETER = exports.TELEBGM_NOTIFY = exports.TELEBGM_COMMAND = void 0;
|
|
7
|
+
var _bytesToHex = require("../../../utils/bytes-to-hex.js");
|
|
8
|
+
var _calculateCrc16Modbus = require("../../../utils/calculate-crc-16-modbus.js");
|
|
9
|
+
var _frameBytes = require("../../../utils/frame-bytes.js");
|
|
10
|
+
var _frameReadResults = require("../../../utils/frame-read-results.js");
|
|
11
|
+
/* eslint-disable import/group-exports */
|
|
12
|
+
|
|
13
|
+
const TELEBGM_SERVICE = exports.TELEBGM_SERVICE = "0003cdd0-0000-1000-8000-00805f9b0131";
|
|
14
|
+
const TELEBGM_NOTIFY = exports.TELEBGM_NOTIFY = "0003cdd1-0000-1000-8000-00805f9b0131";
|
|
15
|
+
const TELEBGM_WRITE = exports.TELEBGM_WRITE = "0003cdd2-0000-1000-8000-00805f9b0131";
|
|
16
|
+
|
|
17
|
+
/** Command byte of a frame; the meter answers a request with the same byte. */
|
|
18
|
+
const TELEBGM_COMMAND = exports.TELEBGM_COMMAND = {
|
|
19
|
+
testStatus: 0x12,
|
|
20
|
+
setTime: 0x44,
|
|
21
|
+
softwareVersion: 0x66,
|
|
22
|
+
serial: 0x77,
|
|
23
|
+
units: 0xaa,
|
|
24
|
+
historyEnd: 0xd1,
|
|
25
|
+
history: 0xdd,
|
|
26
|
+
transferEnd: 0xf2
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** Parameter byte of a request, a clock write and an acknowledgement. */
|
|
30
|
+
const TELEBGM_PARAMETER = exports.TELEBGM_PARAMETER = {
|
|
31
|
+
request: 0x55,
|
|
32
|
+
write: 0x66,
|
|
33
|
+
ack: 0x99
|
|
34
|
+
};
|
|
35
|
+
const START = 0x7b;
|
|
36
|
+
const END = 0x7d;
|
|
37
|
+
const APP_ADDRESS = [0x01, 0x10, 0x01, 0x20];
|
|
38
|
+
const COMMAND_INDEX = 5;
|
|
39
|
+
const LENGTH_INDEX = 7;
|
|
40
|
+
const HEADER_BYTES = 9;
|
|
41
|
+
|
|
42
|
+
/** Four CRC nibbles, then the end byte. */
|
|
43
|
+
const TRAILER_BYTES = 5;
|
|
44
|
+
|
|
45
|
+
/** Longer than any reply; a corrupted length would otherwise hold the buffer for ever. */
|
|
46
|
+
const MAX_PAYLOAD_BYTES = 64;
|
|
47
|
+
|
|
48
|
+
/** The CRC of everything between the start byte and the CRC, as four nibbles. */
|
|
49
|
+
const crcNibbles = body => {
|
|
50
|
+
const crc = (0, _calculateCrc16Modbus.calculateCrc16Modbus)(body);
|
|
51
|
+
return [crc & 0xff, crc >> 8].flatMap(byte => [byte >> 4, byte & 0x0f]);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** `7B 01 10 01 20 <command> <parameter> <length, 2 bytes> <payload> <CRC nibbles> 7D`. */
|
|
55
|
+
const telebgmFrame = (command, parameter, payload = []) => {
|
|
56
|
+
const body = [...APP_ADDRESS, command, parameter, payload.length >> 8, payload.length & 0xff, ...payload];
|
|
57
|
+
return (0, _bytesToHex.bytesToHex)([START, ...body, ...crcNibbles(body), END]);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** A frame's command byte and payload. */
|
|
61
|
+
exports.telebgmFrame = telebgmFrame;
|
|
62
|
+
const unframe = frame => {
|
|
63
|
+
const bytes = (0, _frameBytes.frameBytes)(frame);
|
|
64
|
+
return {
|
|
65
|
+
command: bytes[COMMAND_INDEX],
|
|
66
|
+
payload: bytes.slice(HEADER_BYTES, -TRAILER_BYTES)
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
exports.unframe = unframe;
|
|
70
|
+
const isIntact = frame => {
|
|
71
|
+
const crcAt = frame.length - TRAILER_BYTES;
|
|
72
|
+
return frame[frame.length - 1] === END && crcNibbles(frame.slice(1, crcAt)).every((nibble, index) => frame[crcAt + index] === nibble);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** Reads frames by their length field, a record being longer than one notification, and checks their CRC. */
|
|
76
|
+
class TeleBgmFrameReader {
|
|
77
|
+
readFrame(buffer) {
|
|
78
|
+
const values = (0, _frameBytes.frameBytes)(buffer);
|
|
79
|
+
const start = values.indexOf(START);
|
|
80
|
+
if (start === -1) {
|
|
81
|
+
return (0, _frameReadResults.incomplete)(values.length);
|
|
82
|
+
}
|
|
83
|
+
if (start + HEADER_BYTES > values.length) {
|
|
84
|
+
return (0, _frameReadResults.incomplete)(start);
|
|
85
|
+
}
|
|
86
|
+
const payloadBytes = (values[start + LENGTH_INDEX] ?? 0) << 8 | (values[start + LENGTH_INDEX + 1] ?? 0);
|
|
87
|
+
const total = HEADER_BYTES + payloadBytes + TRAILER_BYTES;
|
|
88
|
+
if (payloadBytes > MAX_PAYLOAD_BYTES) {
|
|
89
|
+
return (0, _frameReadResults.corrupt)(start + 1);
|
|
90
|
+
}
|
|
91
|
+
if (start + total > values.length) {
|
|
92
|
+
return (0, _frameReadResults.incomplete)(start);
|
|
93
|
+
}
|
|
94
|
+
return isIntact(values.slice(start, start + total)) ? (0, _frameReadResults.complete)(buffer.slice(start, start + total), start + total) : (0, _frameReadResults.corrupt)(start + 1);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.TeleBgmFrameReader = TeleBgmFrameReader;
|
|
98
|
+
//# sourceMappingURL=telebgm.protocol.js.map
|
package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.protocol.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bytesToHex","require","_calculateCrc16Modbus","_frameBytes","_frameReadResults","TELEBGM_SERVICE","exports","TELEBGM_NOTIFY","TELEBGM_WRITE","TELEBGM_COMMAND","testStatus","setTime","softwareVersion","serial","units","historyEnd","history","transferEnd","TELEBGM_PARAMETER","request","write","ack","START","END","APP_ADDRESS","COMMAND_INDEX","LENGTH_INDEX","HEADER_BYTES","TRAILER_BYTES","MAX_PAYLOAD_BYTES","crcNibbles","body","crc","calculateCrc16Modbus","flatMap","byte","telebgmFrame","command","parameter","payload","length","bytesToHex","unframe","frame","bytes","frameBytes","slice","isIntact","crcAt","every","nibble","index","TeleBgmFrameReader","readFrame","buffer","values","start","indexOf","incomplete","payloadBytes","total","corrupt","complete"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/blood-glucose/telebgm.protocol.ts"],"mappings":";;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AANA;;AAQO,MAAMI,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,sCAAsC;AAC9D,MAAME,cAAc,GAAAD,OAAA,CAAAC,cAAA,GAAG,sCAAsC;AAC7D,MAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG,sCAAsC;;AAEnE;AACO,MAAMC,eAAe,GAAAH,OAAA,CAAAG,eAAA,GAAG;EAC7BC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,eAAe,EAAE,IAAI;EACrBC,MAAM,EAAE,IAAI;EACZC,KAAK,EAAE,IAAI;EACXC,UAAU,EAAE,IAAI;EAChBC,OAAO,EAAE,IAAI;EACbC,WAAW,EAAE;AACf,CAAU;;AAEV;AACO,MAAMC,i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AGgC,YAAY,GAAG/B,aAAa;IAEzD,IAAI+B,YAAY,GAAG9B,iBAAiB,EAAE;MACpC,OAAO,IAAAgC,yBAAO,EAACL,KAAK,GAAG,CAAC,CAAC;IAC3B;IAEA,IAAIA,KAAK,GAAGI,KAAK,GAAGL,MAAM,CAACf,MAAM,EAAE;MACjC,OAAO,IAAAkB,4BAAU,EAACF,KAAK,CAAC;IAC1B;IAEA,OAAOT,QAAQ,CAACQ,MAAM,CAACT,KAAK,CAACU,KAAK,EAAEA,KAAK,GAAGI,KAAK,CAAC,CAAC,GAC/C,IAAAE,0BAAQ,EAACR,MAAM,CAACR,KAAK,CAACU,KAAK,EAAEA,KAAK,GAAGI,KAAK,CAAC,EAAEJ,KAAK,GAAGI,KAAK,CAAC,GAC3D,IAAAC,yBAAO,EAACL,KAAK,GAAG,CAAC,CAAC;EACxB;AACF;AAAClD,OAAA,CAAA8C,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TeleBgmSequencer = void 0;
|
|
7
|
+
var _next = require("@ovok/core/next");
|
|
8
|
+
var _caseType = require("../../../types/case-type.js");
|
|
9
|
+
var _clockSync = require("../../../types/clock-sync.js");
|
|
10
|
+
var _tenthsMmolToMgPerDl = require("../../../utils/tenths-mmol-to-mg-per-dl.js");
|
|
11
|
+
var _telebgmProtocol = require("./telebgm.protocol.js");
|
|
12
|
+
/** Units reply of a meter showing mg/dL; any other shows mmol/L and reports tenths of a mmol/L. */
|
|
13
|
+
const MG_PER_DL_UNITS = 0x11;
|
|
14
|
+
|
|
15
|
+
/** Result type of a control-solution test, which is not the patient's glucose. */
|
|
16
|
+
const CONTROL_SOLUTION = 0x22;
|
|
17
|
+
|
|
18
|
+
/** `YY MM DD hh mm`, the value as hundreds and units, meal flag, result type. */
|
|
19
|
+
const RECORD_BYTES = 9;
|
|
20
|
+
const RESULT_TYPE_INDEX = 8;
|
|
21
|
+
/** A record's wall-clock time, or undefined when a field is out of range. */
|
|
22
|
+
const recordTime = ([year, month, day, hours, minutes], timezone = "local") => {
|
|
23
|
+
const fields = [2000 + (year ?? 0), (month ?? 0) - 1, day ?? 0, hours ?? 0, minutes ?? 0];
|
|
24
|
+
const time = timezone === "utc" ? new Date(Date.UTC(...fields)) : new Date(...fields);
|
|
25
|
+
const parts = (0, _clockSync.getClockParts)(time, timezone);
|
|
26
|
+
return parts.month === month && parts.day === day && parts.hours === hours && parts.minutes === minutes ? time : undefined;
|
|
27
|
+
};
|
|
28
|
+
const readRecord = (payload, reportsMmol, timezone) => {
|
|
29
|
+
if (payload.length < RECORD_BYTES || payload[RESULT_TYPE_INDEX] === CONTROL_SOLUTION) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
const value = (payload[5] ?? 0) * 100 + (payload[6] ?? 0);
|
|
33
|
+
const recordedAt = recordTime(payload, timezone);
|
|
34
|
+
return recordedAt && value > 0 ? {
|
|
35
|
+
bloodGlucose: reportsMmol ? (0, _tenthsMmolToMgPerDl.tenthsMmolToMgPerDl)(value) : value,
|
|
36
|
+
recordedAt
|
|
37
|
+
} : undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* TeleBGM Gen1: reads the serial, version and units, sets the clock, then downloads the stored
|
|
42
|
+
* readings. The meter sends a reading only when asked for its history, and expects every
|
|
43
|
+
* test-status frame and the end of a transfer to be acknowledged.
|
|
44
|
+
*/
|
|
45
|
+
class TeleBgmSequencer {
|
|
46
|
+
withoutResponse = false;
|
|
47
|
+
reportsMmol = false;
|
|
48
|
+
finished = false;
|
|
49
|
+
constructor(params) {
|
|
50
|
+
this.params = params;
|
|
51
|
+
}
|
|
52
|
+
initialCommands = async () => {
|
|
53
|
+
this.withoutResponse = await this.params.writesWithoutResponse();
|
|
54
|
+
return [this.request(_telebgmProtocol.TELEBGM_COMMAND.serial)];
|
|
55
|
+
};
|
|
56
|
+
isHistoryTransfer = () => true;
|
|
57
|
+
isNormalDisconnect = () => this.finished;
|
|
58
|
+
nextCommand = frame => {
|
|
59
|
+
const {
|
|
60
|
+
command,
|
|
61
|
+
payload
|
|
62
|
+
} = (0, _telebgmProtocol.unframe)(frame);
|
|
63
|
+
switch (command) {
|
|
64
|
+
case _telebgmProtocol.TELEBGM_COMMAND.testStatus:
|
|
65
|
+
return [this.acknowledge(command)];
|
|
66
|
+
case _telebgmProtocol.TELEBGM_COMMAND.serial:
|
|
67
|
+
return [this.request(_telebgmProtocol.TELEBGM_COMMAND.softwareVersion)];
|
|
68
|
+
case _telebgmProtocol.TELEBGM_COMMAND.softwareVersion:
|
|
69
|
+
return [this.request(_telebgmProtocol.TELEBGM_COMMAND.units)];
|
|
70
|
+
case _telebgmProtocol.TELEBGM_COMMAND.units:
|
|
71
|
+
this.reportsMmol = payload[0] !== MG_PER_DL_UNITS;
|
|
72
|
+
return [this.setClock() ?? this.request(_telebgmProtocol.TELEBGM_COMMAND.history)];
|
|
73
|
+
case _telebgmProtocol.TELEBGM_COMMAND.setTime:
|
|
74
|
+
return [this.request(_telebgmProtocol.TELEBGM_COMMAND.history)];
|
|
75
|
+
case _telebgmProtocol.TELEBGM_COMMAND.history:
|
|
76
|
+
this.report(payload);
|
|
77
|
+
return undefined;
|
|
78
|
+
case _telebgmProtocol.TELEBGM_COMMAND.transferEnd:
|
|
79
|
+
this.finished = true;
|
|
80
|
+
return [this.acknowledge(command)];
|
|
81
|
+
case _telebgmProtocol.TELEBGM_COMMAND.historyEnd:
|
|
82
|
+
this.finished = true;
|
|
83
|
+
return undefined;
|
|
84
|
+
default:
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
report = payload => {
|
|
89
|
+
const reading = readRecord(payload, this.reportsMmol, this.params.clockSync?.timezone);
|
|
90
|
+
if (reading) {
|
|
91
|
+
this.params.onResult({
|
|
92
|
+
caseType: _caseType.CaseType.RESULT,
|
|
93
|
+
measurementTypeKey: _next.MeasurementTypeKey.bloodGlucose,
|
|
94
|
+
...reading
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
setClock = () => {
|
|
99
|
+
const {
|
|
100
|
+
clockSync
|
|
101
|
+
} = this.params;
|
|
102
|
+
if (!(0, _clockSync.isClockSyncEnabled)(clockSync)) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
const {
|
|
106
|
+
year,
|
|
107
|
+
month,
|
|
108
|
+
day,
|
|
109
|
+
hours,
|
|
110
|
+
minutes,
|
|
111
|
+
seconds
|
|
112
|
+
} = (0, _clockSync.getClockParts)(clockSync?.now?.() ?? new Date(), clockSync?.timezone);
|
|
113
|
+
return this.command((0, _telebgmProtocol.telebgmFrame)(_telebgmProtocol.TELEBGM_COMMAND.setTime, _telebgmProtocol.TELEBGM_PARAMETER.write, [year % 100, month, day, hours, minutes, seconds]));
|
|
114
|
+
};
|
|
115
|
+
request = command => this.command((0, _telebgmProtocol.telebgmFrame)(command, _telebgmProtocol.TELEBGM_PARAMETER.request));
|
|
116
|
+
acknowledge = command => this.command((0, _telebgmProtocol.telebgmFrame)(command, _telebgmProtocol.TELEBGM_PARAMETER.ack));
|
|
117
|
+
command = frame => ({
|
|
118
|
+
serviceUuid: _telebgmProtocol.TELEBGM_SERVICE,
|
|
119
|
+
characteristicUuid: _telebgmProtocol.TELEBGM_WRITE,
|
|
120
|
+
frame,
|
|
121
|
+
...(this.withoutResponse ? {
|
|
122
|
+
withoutResponse: true
|
|
123
|
+
} : {})
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
exports.TeleBgmSequencer = TeleBgmSequencer;
|
|
127
|
+
//# sourceMappingURL=telebgm.sequencer.js.map
|
package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_next","require","_caseType","_clockSync","_tenthsMmolToMgPerDl","_telebgmProtocol","MG_PER_DL_UNITS","CONTROL_SOLUTION","RECORD_BYTES","RESULT_TYPE_INDEX","recordTime","year","month","day","hours","minutes","timezone","fields","time","Date","UTC","parts","getClockParts","undefined","readRecord","payload","reportsMmol","length","value","recordedAt","bloodGlucose","tenthsMmolToMgPerDl","TeleBgmSequencer","withoutResponse","finished","constructor","params","initialCommands","writesWithoutResponse","request","TELEBGM_COMMAND","serial","isHistoryTransfer","isNormalDisconnect","nextCommand","frame","command","unframe","testStatus","acknowledge","softwareVersion","units","setClock","history","setTime","report","transferEnd","historyEnd","reading","clockSync","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","isClockSyncEnabled","seconds","now","telebgmFrame","TELEBGM_PARAMETER","write","ack","serviceUuid","TELEBGM_SERVICE","characteristicUuid","TELEBGM_WRITE","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/blood-glucose/telebgm.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAQA,IAAAG,oBAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AASA;AACA,MAAMK,eAAe,GAAG,IAAI;;AAE5B;AACA,MAAMC,gBAAgB,GAAG,IAAI;;AAE7B;AACA,MAAMC,YAAY,GAAG,CAAC;AACtB,MAAMC,iBAAiB,GAAG,CAAC;AAU3B;AACA,MAAMC,UAAU,GAAGA,CACjB,CAACC,IAAI,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,OAAO,CAAoB,EACrDC,QAA2B,GAAG,OAAO,KAChB;EACrB,MAAMC,MAAM,GAAG,CAAC,IAAI,IAAIN,IAAI,IAAI,CAAC,CA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C5D,IAAI,GAAG,GAAG,EAAEC,KAAK,EAAEC,GAAG,EAAEC,KAAK,EAAEC,OAAO,EAAEoD,OAAO,CAAC,CAClH,CAAC;EACH,CAAC;EAEO5B,OAAO,GAAIO,OAAe,IAChC,IAAI,CAACA,OAAO,CAAC,IAAAuB,6BAAY,EAACvB,OAAO,EAAEwB,kCAAiB,CAAC/B,OAAO,CAAC,CAAC;EAExDU,WAAW,GAAIH,OAAe,IACpC,IAAI,CAACA,OAAO,CAAC,IAAAuB,6BAAY,EAACvB,OAAO,EAAEwB,kCAAiB,CAACE,GAAG,CAAC,CAAC;EAEpD1B,OAAO,GAAID,KAAe,KAAqB;IACrD4B,WAAW,EAAEC,gCAAe;IAC5BC,kBAAkB,EAAEC,8BAAa;IACjC/B,KAAK;IACL,IAAI,IAAI,CAACZ,eAAe,GAAG;MAAEA,eAAe,EAAE;IAAK,CAAC,GAAG,CAAC,CAAC;EAC3D,CAAC,CAAC;AACJ;AAAC4C,OAAA,CAAA7C,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -29,8 +29,12 @@ var _bp2MainServices = require("./bp2.main-services.js");
|
|
|
29
29
|
*/
|
|
30
30
|
/** BP2 ECG waveform resolution from the device protocol. */
|
|
31
31
|
const BP2_ECG_MILLIVOLTS_PER_COUNT = exports.BP2_ECG_MILLIVOLTS_PER_COUNT = 0.003098;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
|
|
33
|
+
/** The realtime ECG stream's rate. */
|
|
34
|
+
const BP2_LIVE_ECG_SAMPLES_PER_SECOND = 250;
|
|
35
|
+
|
|
36
|
+
/** Stored ECG files hold the waveform at half the realtime rate. */
|
|
37
|
+
const BP2_FILE_ECG_SAMPLES_PER_SECOND = 125;
|
|
34
38
|
const BP2_ECG_NO_VALUE = 0x7fff;
|
|
35
39
|
const BP2_BP_NO_VALUE = 0xffff;
|
|
36
40
|
const BP2_PULSE_NO_VALUES = new Set([0xff, 0x1ff, BP2_BP_NO_VALUE]);
|
|
@@ -101,7 +105,7 @@ class BP2Device extends _btManagedDevice.BTManagedDevice {
|
|
|
101
105
|
successResult.diagramPoints = this.diagramPoints;
|
|
102
106
|
successResult.duration = this.duration;
|
|
103
107
|
this.addDeviceTimestamp(successResult);
|
|
104
|
-
const error = this.checkIfHasErrorForEcg(successResult);
|
|
108
|
+
const error = this.checkIfHasErrorForEcg(successResult, BP2_LIVE_ECG_SAMPLES_PER_SECOND);
|
|
105
109
|
if (error) {
|
|
106
110
|
this.onError?.(error);
|
|
107
111
|
return;
|
|
@@ -219,7 +223,7 @@ class BP2Device extends _btManagedDevice.BTManagedDevice {
|
|
|
219
223
|
...decoded,
|
|
220
224
|
caseType: _caseType.CaseType.RESULT
|
|
221
225
|
};
|
|
222
|
-
const error = result.measurementTypeKey === _next.MeasurementTypeKey.bloodPressure ? this.checkIfHasErrorForBloodPressure(result) : this.checkIfHasErrorForEcg(result);
|
|
226
|
+
const error = result.measurementTypeKey === _next.MeasurementTypeKey.bloodPressure ? this.checkIfHasErrorForBloodPressure(result) : this.checkIfHasErrorForEcg(result, BP2_FILE_ECG_SAMPLES_PER_SECOND);
|
|
223
227
|
if (error) {
|
|
224
228
|
this.onError?.(error);
|
|
225
229
|
return;
|
|
@@ -247,7 +251,7 @@ class BP2Device extends _btManagedDevice.BTManagedDevice {
|
|
|
247
251
|
this.pendingResults.forEach(result => this.onResult?.(result));
|
|
248
252
|
this.pendingResults.clear();
|
|
249
253
|
};
|
|
250
|
-
checkIfHasErrorForEcg(successResult) {
|
|
254
|
+
checkIfHasErrorForEcg(successResult, samplesPerSecond) {
|
|
251
255
|
const ecgMeasurement = successResult;
|
|
252
256
|
if (ecgMeasurement.diagnosticResult === _next.EcgDiagnosticFlag.POOR_WAVEFORM) {
|
|
253
257
|
return _measurementFeedback.MeasurementFeedbackKey.POOR_WAVEFORM;
|
|
@@ -272,8 +276,9 @@ class BP2Device extends _btManagedDevice.BTManagedDevice {
|
|
|
272
276
|
return _measurementFeedback.MeasurementFeedbackKey.INSUFFICIENT_DATA_LENGTH;
|
|
273
277
|
}
|
|
274
278
|
if (ecgMeasurement.duration > 0) {
|
|
275
|
-
const expectedSamples = ecgMeasurement.duration *
|
|
276
|
-
|
|
279
|
+
const expectedSamples = ecgMeasurement.duration * samplesPerSecond;
|
|
280
|
+
const toleranceSamples = samplesPerSecond;
|
|
281
|
+
if (ecgMeasurement.diagramPoints.length < expectedSamples - toleranceSamples || ecgMeasurement.diagramPoints.length > expectedSamples + toleranceSamples) {
|
|
277
282
|
return _measurementFeedback.MeasurementFeedbackKey.INSUFFICIENT_DATA_LENGTH;
|
|
278
283
|
}
|
|
279
284
|
} else if (ecgMeasurement.diagramPoints.length < 3500) {
|