@ovok/native 1.17.0-dev.2213 → 1.17.0-dev.2219

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.
Files changed (261) hide show
  1. package/lib/commonjs/modules/next/bluetooth/adapters/android-foreground-service.js +58 -5
  2. package/lib/commonjs/modules/next/bluetooth/adapters/android-foreground-service.js.map +1 -1
  3. package/lib/commonjs/modules/next/bluetooth/adapters/ble-plx-central.js +45 -24
  4. package/lib/commonjs/modules/next/bluetooth/adapters/ble-plx-central.js.map +1 -1
  5. package/lib/commonjs/modules/next/bluetooth/adapters/ecg-measurements.js +25 -0
  6. package/lib/commonjs/modules/next/bluetooth/adapters/ecg-measurements.js.map +1 -0
  7. package/lib/commonjs/modules/next/bluetooth/adapters/live-supersession.js +62 -0
  8. package/lib/commonjs/modules/next/bluetooth/adapters/live-supersession.js.map +1 -0
  9. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-outbox-watch.js +42 -0
  10. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-outbox-watch.js.map +1 -0
  11. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js +97 -96
  12. package/lib/commonjs/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
  13. package/lib/commonjs/modules/next/bluetooth/adapters/reading-source-id.js +33 -0
  14. package/lib/commonjs/modules/next/bluetooth/adapters/reading-source-id.js.map +1 -0
  15. package/lib/commonjs/modules/next/bluetooth/adapters/reading-values.js +38 -0
  16. package/lib/commonjs/modules/next/bluetooth/adapters/reading-values.js.map +1 -0
  17. package/lib/commonjs/modules/next/bluetooth/adapters/series-saving.js +101 -0
  18. package/lib/commonjs/modules/next/bluetooth/adapters/series-saving.js.map +1 -0
  19. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-database.js +24 -0
  20. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-database.js.map +1 -0
  21. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-rows.js +65 -0
  22. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-rows.js.map +1 -0
  23. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-schema.js +53 -0
  24. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-schema.js.map +1 -0
  25. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-store.js +82 -0
  26. package/lib/commonjs/modules/next/bluetooth/adapters/sqlite-outbox-store.js.map +1 -0
  27. package/lib/commonjs/modules/next/bluetooth/adapters/storage-paired-devices.js +1 -0
  28. package/lib/commonjs/modules/next/bluetooth/adapters/storage-paired-devices.js.map +1 -1
  29. package/lib/commonjs/modules/next/bluetooth/adapters/web-bluetooth-central.js +9 -1
  30. package/lib/commonjs/modules/next/bluetooth/adapters/web-bluetooth-central.js.map +1 -1
  31. package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js +9 -3
  32. package/lib/commonjs/modules/next/bluetooth/core/bluetooth.js.map +1 -1
  33. package/lib/commonjs/modules/next/bluetooth/core/device-deps.js +6 -0
  34. package/lib/commonjs/modules/next/bluetooth/core/device-deps.js.map +1 -0
  35. package/lib/commonjs/modules/next/bluetooth/core/device-link.js +2 -1
  36. package/lib/commonjs/modules/next/bluetooth/core/device-link.js.map +1 -1
  37. package/lib/commonjs/modules/next/bluetooth/core/device-snapshot.js +3 -1
  38. package/lib/commonjs/modules/next/bluetooth/core/device-snapshot.js.map +1 -1
  39. package/lib/commonjs/modules/next/bluetooth/core/device.js +19 -6
  40. package/lib/commonjs/modules/next/bluetooth/core/device.js.map +1 -1
  41. package/lib/commonjs/modules/next/bluetooth/core/live-ledger.js +54 -0
  42. package/lib/commonjs/modules/next/bluetooth/core/live-ledger.js.map +1 -0
  43. package/lib/commonjs/modules/next/bluetooth/core/measuring-watch.js +45 -0
  44. package/lib/commonjs/modules/next/bluetooth/core/measuring-watch.js.map +1 -0
  45. package/lib/commonjs/modules/next/bluetooth/core/outbox-watch.js +17 -0
  46. package/lib/commonjs/modules/next/bluetooth/core/outbox-watch.js.map +1 -0
  47. package/lib/commonjs/modules/next/bluetooth/core/paired-device.js +1 -0
  48. package/lib/commonjs/modules/next/bluetooth/core/paired-device.js.map +1 -1
  49. package/lib/commonjs/modules/next/bluetooth/core/ports.js.map +1 -1
  50. package/lib/commonjs/modules/next/bluetooth/core/reading-log.js +89 -7
  51. package/lib/commonjs/modules/next/bluetooth/core/reading-log.js.map +1 -1
  52. package/lib/commonjs/modules/next/bluetooth/core/series-slots.js +94 -0
  53. package/lib/commonjs/modules/next/bluetooth/core/series-slots.js.map +1 -0
  54. package/lib/commonjs/modules/next/bluetooth/core/stream-recorder.js +219 -0
  55. package/lib/commonjs/modules/next/bluetooth/core/stream-recorder.js.map +1 -0
  56. package/lib/commonjs/modules/next/bluetooth/core/waveform-segments.js +110 -0
  57. package/lib/commonjs/modules/next/bluetooth/core/waveform-segments.js.map +1 -0
  58. package/lib/commonjs/modules/next/bluetooth/create-bluetooth.js +19 -11
  59. package/lib/commonjs/modules/next/bluetooth/create-bluetooth.js.map +1 -1
  60. package/lib/commonjs/modules/next/bluetooth/index.js +9 -1
  61. package/lib/commonjs/modules/next/bluetooth/index.js.map +1 -1
  62. package/lib/commonjs/modules/next/bluetooth/shared.js +14 -0
  63. package/lib/commonjs/modules/next/bluetooth/shared.js.map +1 -1
  64. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth.js +2 -0
  65. package/lib/commonjs/modules/next/bluetooth/web/create-web-bluetooth.js.map +1 -1
  66. package/lib/module/modules/next/bluetooth/adapters/android-foreground-service.js +59 -6
  67. package/lib/module/modules/next/bluetooth/adapters/android-foreground-service.js.map +1 -1
  68. package/lib/module/modules/next/bluetooth/adapters/ble-plx-central.js +45 -24
  69. package/lib/module/modules/next/bluetooth/adapters/ble-plx-central.js.map +1 -1
  70. package/lib/module/modules/next/bluetooth/adapters/ecg-measurements.js +22 -0
  71. package/lib/module/modules/next/bluetooth/adapters/ecg-measurements.js.map +1 -0
  72. package/lib/module/modules/next/bluetooth/adapters/live-supersession.js +59 -0
  73. package/lib/module/modules/next/bluetooth/adapters/live-supersession.js.map +1 -0
  74. package/lib/module/modules/next/bluetooth/adapters/ovok-outbox-watch.js +38 -0
  75. package/lib/module/modules/next/bluetooth/adapters/ovok-outbox-watch.js.map +1 -0
  76. package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js +76 -75
  77. package/lib/module/modules/next/bluetooth/adapters/ovok-reading-sink.js.map +1 -1
  78. package/lib/module/modules/next/bluetooth/adapters/reading-source-id.js +27 -0
  79. package/lib/module/modules/next/bluetooth/adapters/reading-source-id.js.map +1 -0
  80. package/lib/module/modules/next/bluetooth/adapters/reading-values.js +33 -0
  81. package/lib/module/modules/next/bluetooth/adapters/reading-values.js.map +1 -0
  82. package/lib/module/modules/next/bluetooth/adapters/series-saving.js +94 -0
  83. package/lib/module/modules/next/bluetooth/adapters/series-saving.js.map +1 -0
  84. package/lib/module/modules/next/bluetooth/adapters/sqlite-database.js +20 -0
  85. package/lib/module/modules/next/bluetooth/adapters/sqlite-database.js.map +1 -0
  86. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-rows.js +59 -0
  87. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-rows.js.map +1 -0
  88. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-schema.js +49 -0
  89. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-schema.js.map +1 -0
  90. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-store.js +79 -0
  91. package/lib/module/modules/next/bluetooth/adapters/sqlite-outbox-store.js.map +1 -0
  92. package/lib/module/modules/next/bluetooth/adapters/storage-paired-devices.js +1 -0
  93. package/lib/module/modules/next/bluetooth/adapters/storage-paired-devices.js.map +1 -1
  94. package/lib/module/modules/next/bluetooth/adapters/web-bluetooth-central.js +9 -1
  95. package/lib/module/modules/next/bluetooth/adapters/web-bluetooth-central.js.map +1 -1
  96. package/lib/module/modules/next/bluetooth/core/bluetooth.js +9 -3
  97. package/lib/module/modules/next/bluetooth/core/bluetooth.js.map +1 -1
  98. package/lib/module/modules/next/bluetooth/core/device-deps.js +4 -0
  99. package/lib/module/modules/next/bluetooth/core/device-deps.js.map +1 -0
  100. package/lib/module/modules/next/bluetooth/core/device-link.js +2 -1
  101. package/lib/module/modules/next/bluetooth/core/device-link.js.map +1 -1
  102. package/lib/module/modules/next/bluetooth/core/device-snapshot.js +3 -1
  103. package/lib/module/modules/next/bluetooth/core/device-snapshot.js.map +1 -1
  104. package/lib/module/modules/next/bluetooth/core/device.js +19 -6
  105. package/lib/module/modules/next/bluetooth/core/device.js.map +1 -1
  106. package/lib/module/modules/next/bluetooth/core/live-ledger.js +50 -0
  107. package/lib/module/modules/next/bluetooth/core/live-ledger.js.map +1 -0
  108. package/lib/module/modules/next/bluetooth/core/measuring-watch.js +41 -0
  109. package/lib/module/modules/next/bluetooth/core/measuring-watch.js.map +1 -0
  110. package/lib/module/modules/next/bluetooth/core/outbox-watch.js +14 -0
  111. package/lib/module/modules/next/bluetooth/core/outbox-watch.js.map +1 -0
  112. package/lib/module/modules/next/bluetooth/core/paired-device.js +1 -0
  113. package/lib/module/modules/next/bluetooth/core/paired-device.js.map +1 -1
  114. package/lib/module/modules/next/bluetooth/core/ports.js.map +1 -1
  115. package/lib/module/modules/next/bluetooth/core/reading-log.js +89 -7
  116. package/lib/module/modules/next/bluetooth/core/reading-log.js.map +1 -1
  117. package/lib/module/modules/next/bluetooth/core/series-slots.js +90 -0
  118. package/lib/module/modules/next/bluetooth/core/series-slots.js.map +1 -0
  119. package/lib/module/modules/next/bluetooth/core/stream-recorder.js +215 -0
  120. package/lib/module/modules/next/bluetooth/core/stream-recorder.js.map +1 -0
  121. package/lib/module/modules/next/bluetooth/core/waveform-segments.js +106 -0
  122. package/lib/module/modules/next/bluetooth/core/waveform-segments.js.map +1 -0
  123. package/lib/module/modules/next/bluetooth/create-bluetooth.js +19 -11
  124. package/lib/module/modules/next/bluetooth/create-bluetooth.js.map +1 -1
  125. package/lib/module/modules/next/bluetooth/index.js +1 -0
  126. package/lib/module/modules/next/bluetooth/index.js.map +1 -1
  127. package/lib/module/modules/next/bluetooth/shared.js +2 -0
  128. package/lib/module/modules/next/bluetooth/shared.js.map +1 -1
  129. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth.js +2 -0
  130. package/lib/module/modules/next/bluetooth/web/create-web-bluetooth.js.map +1 -1
  131. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/android-foreground-service.d.ts +17 -4
  132. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/android-foreground-service.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ble-plx-central.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ecg-measurements.d.ts +6 -0
  135. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ecg-measurements.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/live-supersession.d.ts +9 -0
  137. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/live-supersession.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-outbox-watch.d.ts +8 -0
  139. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-outbox-watch.d.ts.map +1 -0
  140. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts +9 -3
  141. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-source-id.d.ts +9 -0
  143. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-source-id.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-values.d.ts +9 -0
  145. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/reading-values.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/series-saving.d.ts +28 -0
  147. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/series-saving.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-database.d.ts +23 -0
  149. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-database.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-rows.d.ts +29 -0
  151. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-rows.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-schema.d.ts +6 -0
  153. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-schema.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-store.d.ts +38 -0
  155. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/sqlite-outbox-store.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/storage-paired-devices.d.ts.map +1 -1
  157. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/web-bluetooth-central.d.ts +4 -0
  158. package/lib/typescript/commonjs/src/modules/next/bluetooth/adapters/web-bluetooth-central.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth-options.d.ts +3 -0
  160. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth-options.d.ts.map +1 -1
  161. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
  162. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-deps.d.ts +16 -0
  163. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-deps.d.ts.map +1 -0
  164. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-snapshot.d.ts +5 -0
  165. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device-snapshot.d.ts.map +1 -1
  166. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device.d.ts +6 -13
  167. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/device.d.ts.map +1 -1
  168. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/live-ledger.d.ts +13 -0
  169. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/live-ledger.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/measuring-watch.d.ts +17 -0
  171. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/measuring-watch.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/outbox-watch.d.ts +27 -0
  173. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/outbox-watch.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/paired-device.d.ts +3 -1
  175. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/paired-device.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/ports.d.ts +3 -2
  177. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/ports.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/reading-log.d.ts +25 -6
  179. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/reading-log.d.ts.map +1 -1
  180. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/reading.d.ts +16 -1
  181. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/reading.d.ts.map +1 -1
  182. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-slots.d.ts +35 -0
  183. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/series-slots.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/stream-recorder.d.ts +58 -0
  185. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/stream-recorder.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/waveform-segments.d.ts +26 -0
  187. package/lib/typescript/commonjs/src/modules/next/bluetooth/core/waveform-segments.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/src/modules/next/bluetooth/create-bluetooth.d.ts +3 -2
  189. package/lib/typescript/commonjs/src/modules/next/bluetooth/create-bluetooth.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts +4 -1
  191. package/lib/typescript/commonjs/src/modules/next/bluetooth/index.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/src/modules/next/bluetooth/shared.d.ts +5 -1
  193. package/lib/typescript/commonjs/src/modules/next/bluetooth/shared.d.ts.map +1 -1
  194. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth.d.ts +3 -2
  195. package/lib/typescript/commonjs/src/modules/next/bluetooth/web/create-web-bluetooth.d.ts.map +1 -1
  196. package/lib/typescript/module/src/modules/next/bluetooth/adapters/android-foreground-service.d.ts +17 -4
  197. package/lib/typescript/module/src/modules/next/bluetooth/adapters/android-foreground-service.d.ts.map +1 -1
  198. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ble-plx-central.d.ts.map +1 -1
  199. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ecg-measurements.d.ts +6 -0
  200. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ecg-measurements.d.ts.map +1 -0
  201. package/lib/typescript/module/src/modules/next/bluetooth/adapters/live-supersession.d.ts +9 -0
  202. package/lib/typescript/module/src/modules/next/bluetooth/adapters/live-supersession.d.ts.map +1 -0
  203. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-outbox-watch.d.ts +8 -0
  204. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-outbox-watch.d.ts.map +1 -0
  205. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts +9 -3
  206. package/lib/typescript/module/src/modules/next/bluetooth/adapters/ovok-reading-sink.d.ts.map +1 -1
  207. package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-source-id.d.ts +9 -0
  208. package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-source-id.d.ts.map +1 -0
  209. package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-values.d.ts +9 -0
  210. package/lib/typescript/module/src/modules/next/bluetooth/adapters/reading-values.d.ts.map +1 -0
  211. package/lib/typescript/module/src/modules/next/bluetooth/adapters/series-saving.d.ts +28 -0
  212. package/lib/typescript/module/src/modules/next/bluetooth/adapters/series-saving.d.ts.map +1 -0
  213. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-database.d.ts +23 -0
  214. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-database.d.ts.map +1 -0
  215. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-rows.d.ts +29 -0
  216. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-rows.d.ts.map +1 -0
  217. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-schema.d.ts +6 -0
  218. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-schema.d.ts.map +1 -0
  219. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-store.d.ts +38 -0
  220. package/lib/typescript/module/src/modules/next/bluetooth/adapters/sqlite-outbox-store.d.ts.map +1 -0
  221. package/lib/typescript/module/src/modules/next/bluetooth/adapters/storage-paired-devices.d.ts.map +1 -1
  222. package/lib/typescript/module/src/modules/next/bluetooth/adapters/web-bluetooth-central.d.ts +4 -0
  223. package/lib/typescript/module/src/modules/next/bluetooth/adapters/web-bluetooth-central.d.ts.map +1 -1
  224. package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth-options.d.ts +3 -0
  225. package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth-options.d.ts.map +1 -1
  226. package/lib/typescript/module/src/modules/next/bluetooth/core/bluetooth.d.ts.map +1 -1
  227. package/lib/typescript/module/src/modules/next/bluetooth/core/device-deps.d.ts +16 -0
  228. package/lib/typescript/module/src/modules/next/bluetooth/core/device-deps.d.ts.map +1 -0
  229. package/lib/typescript/module/src/modules/next/bluetooth/core/device-snapshot.d.ts +5 -0
  230. package/lib/typescript/module/src/modules/next/bluetooth/core/device-snapshot.d.ts.map +1 -1
  231. package/lib/typescript/module/src/modules/next/bluetooth/core/device.d.ts +6 -13
  232. package/lib/typescript/module/src/modules/next/bluetooth/core/device.d.ts.map +1 -1
  233. package/lib/typescript/module/src/modules/next/bluetooth/core/live-ledger.d.ts +13 -0
  234. package/lib/typescript/module/src/modules/next/bluetooth/core/live-ledger.d.ts.map +1 -0
  235. package/lib/typescript/module/src/modules/next/bluetooth/core/measuring-watch.d.ts +17 -0
  236. package/lib/typescript/module/src/modules/next/bluetooth/core/measuring-watch.d.ts.map +1 -0
  237. package/lib/typescript/module/src/modules/next/bluetooth/core/outbox-watch.d.ts +27 -0
  238. package/lib/typescript/module/src/modules/next/bluetooth/core/outbox-watch.d.ts.map +1 -0
  239. package/lib/typescript/module/src/modules/next/bluetooth/core/paired-device.d.ts +3 -1
  240. package/lib/typescript/module/src/modules/next/bluetooth/core/paired-device.d.ts.map +1 -1
  241. package/lib/typescript/module/src/modules/next/bluetooth/core/ports.d.ts +3 -2
  242. package/lib/typescript/module/src/modules/next/bluetooth/core/ports.d.ts.map +1 -1
  243. package/lib/typescript/module/src/modules/next/bluetooth/core/reading-log.d.ts +25 -6
  244. package/lib/typescript/module/src/modules/next/bluetooth/core/reading-log.d.ts.map +1 -1
  245. package/lib/typescript/module/src/modules/next/bluetooth/core/reading.d.ts +16 -1
  246. package/lib/typescript/module/src/modules/next/bluetooth/core/reading.d.ts.map +1 -1
  247. package/lib/typescript/module/src/modules/next/bluetooth/core/series-slots.d.ts +35 -0
  248. package/lib/typescript/module/src/modules/next/bluetooth/core/series-slots.d.ts.map +1 -0
  249. package/lib/typescript/module/src/modules/next/bluetooth/core/stream-recorder.d.ts +58 -0
  250. package/lib/typescript/module/src/modules/next/bluetooth/core/stream-recorder.d.ts.map +1 -0
  251. package/lib/typescript/module/src/modules/next/bluetooth/core/waveform-segments.d.ts +26 -0
  252. package/lib/typescript/module/src/modules/next/bluetooth/core/waveform-segments.d.ts.map +1 -0
  253. package/lib/typescript/module/src/modules/next/bluetooth/create-bluetooth.d.ts +3 -2
  254. package/lib/typescript/module/src/modules/next/bluetooth/create-bluetooth.d.ts.map +1 -1
  255. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts +4 -1
  256. package/lib/typescript/module/src/modules/next/bluetooth/index.d.ts.map +1 -1
  257. package/lib/typescript/module/src/modules/next/bluetooth/shared.d.ts +5 -1
  258. package/lib/typescript/module/src/modules/next/bluetooth/shared.d.ts.map +1 -1
  259. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth.d.ts +3 -2
  260. package/lib/typescript/module/src/modules/next/bluetooth/web/create-web-bluetooth.d.ts.map +1 -1
  261. package/package.json +7 -3
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SlotSeries = exports.RECORDED_METRICS = void 0;
7
+ const SLOT_MS = 1_000;
8
+ const SLOTS_PER_SERIES = 3_600;
9
+ const IDLE_CLOSE_MS = 15 * 60_000;
10
+
11
+ /** The streamed numbers worth recording as a series, each with the measurement it belongs to. */
12
+ const RECORDED_METRICS = exports.RECORDED_METRICS = {
13
+ heart_rate: "heart_rate",
14
+ pulse_rate: "oxygen_saturation",
15
+ spo2: "oxygen_saturation",
16
+ perfusion_index: "oxygen_saturation",
17
+ respiration_rate: "respiration_rate",
18
+ body_temperature: "temperature"
19
+ };
20
+
21
+ /** What a series measures. */
22
+
23
+ /** One metric's streamed numbers, one value per second from the second the first one arrived. */
24
+ class SlotSeries {
25
+ values = [];
26
+ changed = true;
27
+ constructor(kind, firstAt) {
28
+ this.kind = kind;
29
+ this.start = Math.floor(firstAt / SLOT_MS) * SLOT_MS;
30
+ this.lastAt = firstAt;
31
+ }
32
+
33
+ /** Whether a value of `unit` taken at `at` still belongs to this series. */
34
+ takes(unit, at) {
35
+ return unit === this.kind.unit && at >= this.start && at - this.lastAt < IDLE_CLOSE_MS && this.slotOf(at) < SLOTS_PER_SERIES;
36
+ }
37
+
38
+ /** Puts a value in the second it was taken; of two values in one second the later stays. */
39
+ put(value, at) {
40
+ const slot = this.slotOf(at);
41
+ while (this.values.length <= slot) {
42
+ this.values.push(null);
43
+ }
44
+ this.values[slot] = value;
45
+ this.lastAt = at;
46
+ this.changed = true;
47
+ }
48
+
49
+ /** Whether no value arrived for as long as a series waits before it closes. */
50
+ isQuiet(now) {
51
+ return now - this.lastAt >= IDLE_CLOSE_MS;
52
+ }
53
+
54
+ /** Whether values arrived since the last `markSaved`. */
55
+ get unsaved() {
56
+ return this.changed;
57
+ }
58
+ markSaved() {
59
+ this.changed = false;
60
+ }
61
+
62
+ /** The series as it is now, as a reading to save. */
63
+ reading(origin) {
64
+ const span = this.span();
65
+ return {
66
+ type: this.kind.type,
67
+ takenAt: span.from,
68
+ values: {},
69
+ deviceFlags: [],
70
+ series: {
71
+ metric: this.kind.metric,
72
+ unit: this.kind.unit,
73
+ start: span.from,
74
+ intervalMs: SLOT_MS,
75
+ values: [...this.values]
76
+ },
77
+ live: span,
78
+ source: origin
79
+ };
80
+ }
81
+ span() {
82
+ return {
83
+ metric: this.kind.metric,
84
+ channel: null,
85
+ from: new Date(this.start),
86
+ to: new Date(this.start + this.values.length * SLOT_MS)
87
+ };
88
+ }
89
+ slotOf(at) {
90
+ return Math.floor((at - this.start) / SLOT_MS);
91
+ }
92
+ }
93
+ exports.SlotSeries = SlotSeries;
94
+ //# sourceMappingURL=series-slots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SLOT_MS","SLOTS_PER_SERIES","IDLE_CLOSE_MS","RECORDED_METRICS","exports","heart_rate","pulse_rate","spo2","perfusion_index","respiration_rate","body_temperature","SlotSeries","values","changed","constructor","kind","firstAt","start","Math","floor","lastAt","takes","unit","at","slotOf","put","value","slot","length","push","isQuiet","now","unsaved","markSaved","reading","origin","span","type","takenAt","from","deviceFlags","series","metric","intervalMs","live","source","channel","Date","to"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/core/series-slots.ts"],"mappings":";;;;;;AAGA,MAAMA,OAAO,GAAG,KAAK;AACrB,MAAMC,gBAAgB,GAAG,KAAK;AAC9B,MAAMC,aAAa,GAAG,EAAE,GAAG,MAAM;;AAEjC;AACA,MAAMC,gBAA8D,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EACrEE,UAAU,EAAE,YAAY;EACxBC,UAAU,EAAE,mBAAmB;EAC/BC,IAAI,EAAE,mBAAmB;EACzBC,eAAe,EAAE,mBAAmB;EACpCC,gBAAgB,EAAE,kBAAkB;EACpCC,gBAAgB,EAAE;AACpB,CAAC;;AAED;;AAGA;AACA,MAAMC,UAAU,CAAC;EAEEC,MAAM,GAAsB,EAAE;EAEvCC,OAAO,GAAG,IAAI;EAEfC,WAAWA,CAAkBC,IAAgB,EAAEC,OAAe,EAAE;IAAA,KAAnCD,IAAgB,GAAhBA,IAAgB;IAClD,IAAI,CAACE,KAAK,GAAGC,IAAI,CAACC,KAAK,CAACH,OAAO,GAAGhB,OAAO,CAAC,GAAGA,OAAO;IACpD,IAAI,CAACoB,MAAM,GAAGJ,OAAO;EACvB;;EAEA;EACOK,KAAKA,CAACC,IAAY,EAAEC,EAAU,EAAW;IAC9C,OAAOD,IAAI,KAAK,IAAI,CAACP,IAAI,CAACO,IAAI,IAAIC,EAAE,IAAI,IAAI,CAACN,KAAK,IAAIM,EAAE,GAAG,IAAI,CAACH,MAAM,GAAGlB,aAAa,IAAI,IAAI,CAACsB,MAAM,CAACD,EAAE,CAAC,GAAGtB,gBAAgB;EAC9H;;EAEA;EACOwB,GAAGA,CAACC,KAAa,EAAEH,EAAU,EAAQ;IAC1C,MAAMI,IAAI,GAAG,IAAI,CAACH,MAAM,CAACD,EAAE,CAAC;IAE5B,OAAO,IAAI,CA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AAK,CAAC;MAC1B+B,EAAE,EAAE,IAAID,IAAI,CAAC,IAAI,CAAC9B,KAAK,GAAG,IAAI,CAACL,MAAM,CAACgB,MAAM,GAAG5B,OAAO;IACxD,CAAC;EACH;EAEQwB,MAAMA,CAACD,EAAU,EAAU;IACjC,OAAOL,IAAI,CAACC,KAAK,CAAC,CAACI,EAAE,GAAG,IAAI,CAACN,KAAK,IAAIjB,OAAO,CAAC;EAChD;AACF;AAACI,OAAA,CAAAO,UAAA,GAAAA,UAAA","ignoreList":[]}
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.StreamRecorder = void 0;
7
+ var _errors = require("./errors.js");
8
+ var _liveLedger = require("./live-ledger.js");
9
+ var _seriesSlots = require("./series-slots.js");
10
+ var _waveformSegments = require("./waveform-segments.js");
11
+ const MS_PER_SECOND = 1_000;
12
+ const SAVE_OPEN_EVERY_MS = 60_000;
13
+
14
+ /** The device being recorded. */
15
+
16
+ /**
17
+ * Records what one device streams live and saves it through the sink: numbers as series of one-second slots, waveforms
18
+ * as segments of five minutes at the waveform's own sample rate. It does the same for every device.
19
+ */
20
+ class StreamRecorder {
21
+ open = new Map();
22
+ segments = new Map();
23
+ ledger = new _liveLedger.LiveLedger();
24
+ replacing = new Map();
25
+ unsupported = new Set();
26
+ saving = Promise.resolve();
27
+ streaming = false;
28
+ constructor(device, sink, deps) {
29
+ this.device = device;
30
+ this.sink = sink;
31
+ this.deps = deps;
32
+ this.origin = {
33
+ modelId: deps.model.id,
34
+ protocolId: deps.protocol.id,
35
+ address: device.address,
36
+ recordId: null
37
+ };
38
+ }
39
+
40
+ /** Records from the device's events: live numbers and samples, and the end of the stream. */
41
+ follow(events) {
42
+ events.add(event => this.observe(event));
43
+ }
44
+
45
+ /** Takes one device event: numbers and samples while recording is on, and the end of the stream. */
46
+ observe(event) {
47
+ if (event.kind === "state") {
48
+ this.followStream(event.snapshot.live);
49
+ } else if (event.kind === "live" && this.device.snapshot().record) {
50
+ this.recordNumbers(event.values);
51
+ } else if (event.kind === "waveform" && this.device.snapshot().record) {
52
+ this.recordWaveform(event.waveform);
53
+ }
54
+ }
55
+
56
+ /** Marks the live recordings a stored record replaces, which the sink removes once it has saved the record. */
57
+ supersede(recordId, record) {
58
+ const spans = this.ledger.inside(record);
59
+ if (spans.length === 0) {
60
+ return record;
61
+ }
62
+ this.replacing.set(recordId, spans);
63
+ return {
64
+ ...record,
65
+ supersedes: spans
66
+ };
67
+ }
68
+
69
+ /** The record was saved, so the recordings it replaced are gone for good. */
70
+ acknowledged(recordId) {
71
+ this.ledger.remove(this.replacing.get(recordId) ?? []);
72
+ this.replacing.delete(recordId);
73
+ }
74
+
75
+ /** Saves everything still open, and resolves once every save has finished. */
76
+ close() {
77
+ this.stopTimer();
78
+ [...this.open.keys()].forEach(metric => this.finish(metric));
79
+ this.segments.forEach(segment => segment.flush().forEach(reading => this.saveSettled(reading)));
80
+ this.segments.clear();
81
+ return this.saving;
82
+ }
83
+ followStream(streaming) {
84
+ if (this.streaming && !streaming) {
85
+ void this.close();
86
+ }
87
+ this.streaming = streaming;
88
+ }
89
+ recordNumbers({
90
+ values,
91
+ at
92
+ }) {
93
+ Object.entries(values).forEach(([metric, quantity]) => {
94
+ const type = _seriesSlots.RECORDED_METRICS[metric];
95
+ if (quantity && type && Number.isFinite(quantity.value) && !this.unsupported.has(metric)) {
96
+ const takenAt = at.getTime();
97
+ this.seriesFor({
98
+ metric,
99
+ type,
100
+ unit: quantity.unit
101
+ }, takenAt).put(quantity.value, takenAt);
102
+ }
103
+ });
104
+ }
105
+ seriesFor(kind, at) {
106
+ const current = this.open.get(kind.metric);
107
+ if (current?.takes(kind.unit, at)) {
108
+ return current;
109
+ }
110
+ if (current) {
111
+ this.finish(kind.metric);
112
+ }
113
+ const series = new _seriesSlots.SlotSeries(kind, at);
114
+ this.open.set(kind.metric, series);
115
+ this.timer ??= setInterval(() => this.saveOpenSeries(), SAVE_OPEN_EVERY_MS);
116
+ return series;
117
+ }
118
+ recordWaveform(waveform) {
119
+ if (this.unsupported.has(waveform.metric) || !(waveform.sampleRateHz > 0)) {
120
+ return;
121
+ }
122
+ const arrivedAt = this.deps.now().getTime();
123
+ waveform.channels.forEach((channel, index) => {
124
+ const samples = waveform.samples[index];
125
+ const firstAt = waveform.firstSampleAt?.getTime() ?? arrivedAt - (samples?.length ?? 0) / waveform.sampleRateHz * MS_PER_SECOND;
126
+ if (samples?.length) {
127
+ this.segmentFor(waveform, channel).add(samples, firstAt).forEach(reading => this.saveSettled(reading));
128
+ }
129
+ });
130
+ }
131
+ segmentFor(waveform, channel) {
132
+ const {
133
+ metric,
134
+ sampleRateHz,
135
+ unit,
136
+ scale
137
+ } = waveform;
138
+ const key = [metric, channel, sampleRateHz, unit, scale].join("|");
139
+ const segment = this.segments.get(key) ?? new _waveformSegments.ChannelSegment({
140
+ metric,
141
+ channel,
142
+ sampleRateHz,
143
+ unit,
144
+ scale
145
+ }, this.origin);
146
+ this.segments.set(key, segment);
147
+ return segment;
148
+ }
149
+
150
+ /** The 60-second save: an open series that grew goes out again under its own name, so the outbox keeps one copy. */
151
+ saveOpenSeries() {
152
+ const now = this.deps.now().getTime();
153
+ [...this.open.entries()].forEach(([metric, series]) => {
154
+ if (series.isQuiet(now)) {
155
+ this.finish(metric);
156
+ } else if (series.unsaved) {
157
+ this.enqueue(series.reading(this.origin), () => undefined);
158
+ series.markSaved();
159
+ }
160
+ });
161
+ if (this.open.size === 0) {
162
+ this.stopTimer();
163
+ }
164
+ }
165
+ finish(metric) {
166
+ const series = this.open.get(metric);
167
+ this.open.delete(metric);
168
+ if (series) {
169
+ this.saveSettled(series.reading(this.origin));
170
+ }
171
+ }
172
+ saveSettled(reading) {
173
+ this.enqueue(reading, ({
174
+ live
175
+ }) => {
176
+ if (live) {
177
+ this.ledger.add(live);
178
+ }
179
+ });
180
+ }
181
+
182
+ /** Saves one at a time, in the order they were made. */
183
+ enqueue(reading, onSaved) {
184
+ this.saving = this.saving.then(async () => {
185
+ if (reading.live && this.unsupported.has(reading.live.metric)) {
186
+ return;
187
+ }
188
+ try {
189
+ await this.sink.save(reading, this.device.snapshot());
190
+ onSaved(reading);
191
+ } catch (error) {
192
+ this.failed(reading, error);
193
+ }
194
+ });
195
+ }
196
+ failed(reading, error) {
197
+ const metric = reading.live?.metric ?? null;
198
+ const protocol = this.origin.protocolId;
199
+ if (error instanceof _errors.DeviceError && error.code === "unsupported" && reading.live) {
200
+ this.unsupported.add(reading.live.metric);
201
+ this.deps.logger.warn("bluetooth.stream.unsupported", {
202
+ protocol,
203
+ metric
204
+ });
205
+ } else {
206
+ this.deps.logger.error("bluetooth.stream.save-failed", {
207
+ protocol,
208
+ metric,
209
+ code: error instanceof _errors.DeviceError ? error.code : null
210
+ });
211
+ }
212
+ }
213
+ stopTimer() {
214
+ clearInterval(this.timer);
215
+ this.timer = undefined;
216
+ }
217
+ }
218
+ exports.StreamRecorder = StreamRecorder;
219
+ //# sourceMappingURL=stream-recorder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_errors","require","_liveLedger","_seriesSlots","_waveformSegments","MS_PER_SECOND","SAVE_OPEN_EVERY_MS","StreamRecorder","open","Map","segments","ledger","LiveLedger","replacing","unsupported","Set","saving","Promise","resolve","streaming","constructor","device","sink","deps","origin","modelId","model","id","protocolId","protocol","address","recordId","follow","events","add","event","observe","kind","followStream","snapshot","live","record","recordNumbers","values","recordWaveform","waveform","supersede","spans","inside","length","set","supersedes","acknowledged","remove","get","delete","close","stopTimer","keys","forEach","metric","finish","segment","flush","reading","saveSettled","clear","at","Object","entries","quantity","type","RECORDED_METRICS","Number","isFinite","value","has","takenAt","getTime","seriesFor","unit","put","current","takes","series","SlotSeries","timer","setInterval","saveOpenSeries","sampleRateHz","arrivedAt","now","channels","channel","index","samples","firstAt","firstSampleAt","segmentFor","scale","key","join","ChannelSegment","isQuiet","unsaved","enqueue","undefined","markSaved","size","onSaved","then","save","error","failed","DeviceError","code","logger","warn","clearInterval","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/core/stream-recorder.ts"],"mappings":";;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAIA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAAG,KAAK;AAC3B,MAAMC,kBAAkB,GAAG,MAAM;;AAEjC;;AAYA;AACA;AACA;AACA;AACA,MAAMC,cAAc,CAAC;EACFC,IAAI,GAAG,IAAIC,GAAG,CAAyB,CAAC;EACxCC,QAAQ,GAAG,IAAID,GAAG,CAAyB,CAAC;EAC5CE,MAAM,GAAG,IAAIC,sBAAU,CAAC,CAAC;EACzBC,SAAS,GAAG,IAAIJ,GAAG,CAA8B,CAAC;EAClDK,WAAW,GAAG,IAAIC,GAAG,CAAqB,CAAC;EACpDC,MAAM,GAAkBC,OAAO,CAACC,OAAO,CAAC,CAAC;EAEzCC,SAAS,GAAG,KAAK;EAGlBC,WAAWA,CACCC,MAAsB,EACtBC,IAAiB,EACjBC,IAAkB,EACnC;IAAA,KAHiBF,MAAsB,GAAtBA,MAAsB;IAAA,KACtBC,IAAiB,GAAjBA,IAAiB;IAAA,KACjBC,IAAkB,GAAlBA,IAAkB;IAEnC,IAAI,CAACC,MAAM,GAAG;MAAEC,OAAO,EAAEF,IAAI,CAACG,KAAK,CAACC,EAAE;MAAEC,UAAU,EAAEL,IAAI,CAACM,QAAQ,CAACF,EAAE;MAAEG,OAAO,EAAET,MAAM,CAACS,OAAO;MAAEC,QAAQ,EAAE;IAAK,CAAC;EACjH;;EAEA;EACOC,MAAMA,CAACC,MAA8B,EAAQ;IAClDA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK,IAAI,CAACC,OAAO,CAACD,KAAK,CAAC,CAAC;EAC5C;;EAEA;EACOC,OAAOA,CAACD,KAAkB,EAAQ;IACvC,IAAIA,KA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AAE;QACd,IAAI,CAACC,MAAM,CAACjD,OAAO,EAAEgD,KAAK,CAAC;MAC7B;IACF,CAAC,CAAC;EACJ;EAEQC,MAAMA,CAACjD,OAAgB,EAAEgD,KAAc,EAAQ;IACrD,MAAMpD,MAAM,GAAGI,OAAO,CAACxB,IAAI,EAAEoB,MAAM,IAAI,IAAI;IAC3C,MAAM/B,QAAQ,GAAG,IAAI,CAACL,MAAM,CAACI,UAAU;IAEvC,IAAIoF,KAAK,YAAYE,mBAAW,IAAIF,KAAK,CAACG,IAAI,KAAK,aAAa,IAAInD,OAAO,CAACxB,IAAI,EAAE;MAChF,IAAI,CAAC1B,WAAW,CAACoB,GAAG,CAAC8B,OAAO,CAACxB,IAAI,CAACoB,MAAM,CAAC;MACzC,IAAI,CAACrC,IAAI,CAAC6F,MAAM,CAACC,IAAI,CAAC,8BAA8B,EAAE;QAAExF,QAAQ;QAAE+B;MAAO,CAAC,CAAC;IAC7E,CAAC,MAAM;MACL,IAAI,CAACrC,IAAI,CAAC6F,MAAM,CAACJ,KAAK,CAAC,8BAA8B,EAAE;QAAEnF,QAAQ;QAAE+B,MAAM;QAAEuD,IAAI,EAAEH,KAAK,YAAYE,mBAAW,GAAGF,KAAK,CAACG,IAAI,GAAG;MAAK,CAAC,CAAC;IACtI;EACF;EAEQ1D,SAASA,CAAA,EAAS;IACxB6D,aAAa,CAAC,IAAI,CAAChC,KAAK,CAAC;IACzB,IAAI,CAACA,KAAK,GAAGoB,SAAS;EACxB;AACF;AAACa,OAAA,CAAAhH,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ChannelSegment = void 0;
7
+ const MS_PER_SECOND = 1_000;
8
+ const SEGMENT_MS = 5 * 60_000;
9
+
10
+ /** Samples that arrive this much later than the ones before them leave a hole, so they start a new segment. */
11
+ const MAX_GAP_MS = 5_000;
12
+ const MEASUREMENT_OF_WAVEFORM = {
13
+ ecg_waveform: "ecg",
14
+ pleth_waveform: "oxygen_saturation"
15
+ };
16
+
17
+ /** What stays the same while one channel of a waveform streams. */
18
+
19
+ /** One channel's samples, collected until they fill five minutes, a gap opens, or the stream ends. */
20
+ class ChannelSegment {
21
+ chunks = [];
22
+ count = 0;
23
+ from = 0;
24
+ constructor(shape, origin) {
25
+ this.shape = shape;
26
+ this.origin = origin;
27
+ }
28
+
29
+ /** Adds samples whose first was taken at `at`; returns the segments they completed. */
30
+ add(samples, at) {
31
+ const completed = this.count > 0 && at - this.endsAt() > MAX_GAP_MS ? this.flush() : [];
32
+ let rest = samples;
33
+ let restAt = at;
34
+ while (rest.length > 0) {
35
+ const part = rest.subarray(0, this.capacity() - this.count);
36
+ this.append(part, restAt);
37
+ rest = rest.subarray(part.length);
38
+ restAt += this.durationOf(part.length);
39
+ completed.push(...(this.count >= this.capacity() ? this.flush() : []));
40
+ }
41
+ return completed;
42
+ }
43
+
44
+ /** Hands over what is collected as one reading, none when it is empty. */
45
+ flush() {
46
+ if (this.count === 0) {
47
+ return [];
48
+ }
49
+ const samples = new Int16Array(this.count);
50
+ let filled = 0;
51
+ this.chunks.forEach(chunk => {
52
+ samples.set(chunk, filled);
53
+ filled += chunk.length;
54
+ });
55
+ const reading = this.readingOf(samples);
56
+ this.chunks = [];
57
+ this.count = 0;
58
+ return [reading];
59
+ }
60
+ append(part, at) {
61
+ if (this.count === 0) {
62
+ this.from = at;
63
+ }
64
+ this.chunks.push(part.slice());
65
+ this.count += part.length;
66
+ }
67
+ readingOf(samples) {
68
+ const from = new Date(this.from);
69
+ const {
70
+ metric,
71
+ channel,
72
+ sampleRateHz,
73
+ unit,
74
+ scale
75
+ } = this.shape;
76
+ return {
77
+ type: MEASUREMENT_OF_WAVEFORM[metric],
78
+ takenAt: from,
79
+ values: {},
80
+ deviceFlags: [],
81
+ waveform: {
82
+ metric,
83
+ sampleRateHz,
84
+ unit,
85
+ scale,
86
+ channels: [channel],
87
+ samples: [samples],
88
+ firstSampleAt: from
89
+ },
90
+ live: {
91
+ metric,
92
+ channel,
93
+ from,
94
+ to: new Date(this.endsAt())
95
+ },
96
+ source: this.origin
97
+ };
98
+ }
99
+ capacity() {
100
+ return Math.round(this.shape.sampleRateHz * SEGMENT_MS / MS_PER_SECOND);
101
+ }
102
+ endsAt() {
103
+ return this.from + this.durationOf(this.count);
104
+ }
105
+ durationOf(samples) {
106
+ return samples / this.shape.sampleRateHz * MS_PER_SECOND;
107
+ }
108
+ }
109
+ exports.ChannelSegment = ChannelSegment;
110
+ //# sourceMappingURL=waveform-segments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["MS_PER_SECOND","SEGMENT_MS","MAX_GAP_MS","MEASUREMENT_OF_WAVEFORM","ecg_waveform","pleth_waveform","ChannelSegment","chunks","count","from","constructor","shape","origin","add","samples","at","completed","endsAt","flush","rest","restAt","length","part","subarray","capacity","append","durationOf","push","Int16Array","filled","forEach","chunk","set","reading","readingOf","slice","Date","metric","channel","sampleRateHz","unit","scale","type","takenAt","values","deviceFlags","waveform","channels","firstSampleAt","live","to","source","Math","round","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/core/waveform-segments.ts"],"mappings":";;;;;;AAGA,MAAMA,aAAa,GAAG,KAAK;AAC3B,MAAMC,UAAU,GAAG,CAAC,GAAG,MAAM;;AAE7B;AACA,MAAMC,UAAU,GAAG,KAAK;AAExB,MAAMC,uBAAoE,GAAG;EAC3EC,YAAY,EAAE,KAAK;EACnBC,cAAc,EAAE;AAClB,CAAC;;AAED;;AAGA;AACA,MAAMC,cAAc,CAAC;EACXC,MAAM,GAAiB,EAAE;EACzBC,KAAK,GAAG,CAAC;EACTC,IAAI,GAAG,CAAC;EAETC,WAAWA,CAAkBC,KAAmB,EAAmBC,MAAqB,EAAE;IAAA,KAA7DD,KAAmB,GAAnBA,KAAmB;IAAA,KAAmBC,MAAqB,GAArBA,MAAqB;EAAG;;EAElG;EACOC,GAAGA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IAAI,CAAC1C,KAAK,CAAC4B,YAAY,GAAGtC,UAAU,GAAID,aAAa,CAAC;EAC3E;EAEQiB,MAAMA,CAAA,EAAW;IACvB,OAAO,IAAI,CAACR,IAAI,GAAG,IAAI,CAACiB,UAAU,CAAC,IAAI,CAAClB,KAAK,CAAC;EAChD;EAEQkB,UAAUA,CAACZ,OAAe,EAAU;IAC1C,OAAQA,OAAO,GAAG,IAAI,CAACH,KAAK,CAAC4B,YAAY,GAAIvC,aAAa;EAC5D;AACF;AAACsD,OAAA,CAAAhD,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -8,6 +8,7 @@ var _reactNativeBlePlx = require("react-native-ble-plx");
8
8
  var _androidForegroundService = require("./adapters/android-foreground-service.js");
9
9
  var _blePlxCentral = require("./adapters/ble-plx-central.js");
10
10
  var _osPermissions = require("./adapters/os-permissions.js");
11
+ var _ovokOutboxWatch = require("./adapters/ovok-outbox-watch.js");
11
12
  var _ovokReadingSink = require("./adapters/ovok-reading-sink.js");
12
13
  var _reactNativeLifecycle = require("./adapters/react-native-lifecycle.js");
13
14
  var _storagePairedDevices = require("./adapters/storage-paired-devices.js");
@@ -20,16 +21,23 @@ const createBluetooth = ({
20
21
  ovok,
21
22
  storage,
22
23
  ...overrides
23
- }) => new _bluetooth.Bluetooth({
24
- central: (0, _blePlxCentral.blePlxCentral)(new _reactNativeBlePlx.BleManager()),
25
- store: (0, _storagePairedDevices.storagePairedDevices)(storage),
26
- sink: (0, _ovokReadingSink.ovokReadingSink)(ovok),
27
- permissions: (0, _osPermissions.osBluetoothPermissions)(),
28
- models: _builtIn.BUILT_IN_MODELS,
29
- protocols: _builtIn.BUILT_IN_PROTOCOLS,
30
- lifecycle: (0, _reactNativeLifecycle.reactNativeLifecycle)(),
31
- keepAlive: (0, _androidForegroundService.androidForegroundService)(),
32
- ...overrides
33
- });
24
+ }) => {
25
+ const outbox = (0, _ovokOutboxWatch.ovokOutboxWatch)(ovok.outbox, overrides.logger);
26
+ return new _bluetooth.Bluetooth({
27
+ central: (0, _blePlxCentral.blePlxCentral)(new _reactNativeBlePlx.BleManager()),
28
+ store: (0, _storagePairedDevices.storagePairedDevices)(storage),
29
+ sink: (0, _ovokReadingSink.ovokReadingSink)(ovok),
30
+ permissions: (0, _osPermissions.osBluetoothPermissions)(),
31
+ models: _builtIn.BUILT_IN_MODELS,
32
+ protocols: _builtIn.BUILT_IN_PROTOCOLS,
33
+ lifecycle: (0, _reactNativeLifecycle.reactNativeLifecycle)(),
34
+ keepAlive: (0, _androidForegroundService.androidForegroundService)({}, {
35
+ outbox,
36
+ logger: overrides.logger
37
+ }),
38
+ outbox,
39
+ ...overrides
40
+ });
41
+ };
34
42
  exports.createBluetooth = createBluetooth;
35
43
  //# sourceMappingURL=create-bluetooth.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeBlePlx","require","_androidForegroundService","_blePlxCentral","_osPermissions","_ovokReadingSink","_reactNativeLifecycle","_storagePairedDevices","_bluetooth","_builtIn","createBluetooth","ovok","storage","overrides","Bluetooth","central","blePlxCentral","BleManager","store","storagePairedDevices","sink","ovokReadingSink","permissions","osBluetoothPermissions","models","BUILT_IN_MODELS","protocols","BUILT_IN_PROTOCOLS","lifecycle","reactNativeLifecycle","keepAlive","androidForegroundService","exports"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/create-bluetooth.ts"],"mappings":";;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAEA;;AAUA;AACA,MAAMS,eAAe,GAAGA,CAAC;EAAEC,IAAI;EAAEC,OAAO;EAAE,GAAGC;AAAkC,CAAC,KAC9E,IAAIC,oBAAS,CAAC;EACZC,OAAO,EAAE,IAAAC,4BAAa,EAAC,IAAIC,6BAAU,CAAC,CAAC,CAAC;EACxCC,KAAK,EAAE,IAAAC,0CAAoB,EAACP,OAAO,CAAC;EACpCQ,IAAI,EAAE,IAAAC,gCAAe,EAACV,IAAI,CAAC;EAC3BW,WAAW,EAAE,IAAAC,qCAAsB,EAAC,CAAC;EACrCC,MAAM,EAAEC,wBAAe;EACvBC,SAAS,EAAEC,2BAAkB;EAC7BC,SAAS,EAAE,IAAAC,0CAAoB,EAAC,CAAC;EACjCC,SAAS,EAAE,IAAAC,kDAAwB,EAAC,CAAC;EACrC,GAAGlB;AACL,CAAC,CAAC;AAACmB,OAAA,CAAAtB,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeBlePlx","require","_androidForegroundService","_blePlxCentral","_osPermissions","_ovokOutboxWatch","_ovokReadingSink","_reactNativeLifecycle","_storagePairedDevices","_bluetooth","_builtIn","createBluetooth","ovok","storage","overrides","outbox","ovokOutboxWatch","logger","Bluetooth","central","blePlxCentral","BleManager","store","storagePairedDevices","sink","ovokReadingSink","permissions","osBluetoothPermissions","models","BUILT_IN_MODELS","protocols","BUILT_IN_PROTOCOLS","lifecycle","reactNativeLifecycle","keepAlive","androidForegroundService","exports"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/create-bluetooth.ts"],"mappings":";;;;;;AACA,IAAAA,kBAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,qBAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAEA;;AAUA;AACA,MAAMU,eAAe,GAAGA,CAAC;EAAEC,IAAI;EAAEC,OAAO;EAAE,GAAGC;AAAkC,CAAC,KAAgB;EAC9F,MAAMC,MAAM,GAAG,IAAAC,gCAAe,EAACJ,IAAI,CAACG,MAAM,EAAED,SAAS,CAACG,MAAM,CAAC;EAE7D,OAAO,IAAIC,oBAAS,CAAC;IACnBC,OAAO,EAAE,IAAAC,4BAAa,EAAC,IAAIC,6BAAU,CAAC,CAAC,CAAC;IACxCC,KAAK,EAAE,IAAAC,0CAAoB,EAACV,OAAO,CAAC;IACpCW,IAAI,EAAE,IAAAC,gCAAe,EAACb,IAAI,CAAC;IAC3Bc,WAAW,EAAE,IAAAC,qCAAsB,EAAC,CAAC;IACrCC,MAAM,EAAEC,wBAAe;IACvBC,SAAS,EAAEC,2BAAkB;IAC7BC,SAAS,EAAE,IAAAC,0CAAoB,EAAC,CAAC;IACjCC,SAAS,EAAE,IAAAC,kDAAwB,EAAC,CAAC,CAAC,EAAE;MAAEpB,MAAM;MAAEE,MAAM,EAAEH,SAAS,CAACG;IAAO,CAAC,CAAC;IAC7EF,MAAM;IACN,GAAGD;EACL,CAAC,CAAC;AACJ,CAAC;AAACsB,OAAA,CAAAzB,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -8,8 +8,15 @@ var _exportNames = {
8
8
  blePlxCentral: true,
9
9
  osBluetoothPermissions: true,
10
10
  reactNativeLifecycle: true,
11
- createBluetooth: true
11
+ createBluetooth: true,
12
+ SqliteOutboxStore: true
12
13
  };
14
+ Object.defineProperty(exports, "SqliteOutboxStore", {
15
+ enumerable: true,
16
+ get: function () {
17
+ return _sqliteOutboxStore.SqliteOutboxStore;
18
+ }
19
+ });
13
20
  Object.defineProperty(exports, "androidForegroundService", {
14
21
  enumerable: true,
15
22
  get: function () {
@@ -57,4 +64,5 @@ var _blePlxCentral = require("./adapters/ble-plx-central.js");
57
64
  var _osPermissions = require("./adapters/os-permissions.js");
58
65
  var _reactNativeLifecycle = require("./adapters/react-native-lifecycle.js");
59
66
  var _createBluetooth = require("./create-bluetooth.js");
67
+ var _sqliteOutboxStore = require("./adapters/sqlite-outbox-store.js");
60
68
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_shared","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_androidForegroundService","_blePlxCentral","_osPermissions","_reactNativeLifecycle","_createBluetooth"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,yBAAA,GAAAb,OAAA;AAEA,IAAAc,cAAA,GAAAd,OAAA;AACA,IAAAe,cAAA,GAAAf,OAAA;AACA,IAAAgB,qBAAA,GAAAhB,OAAA;AACA,IAAAiB,gBAAA,GAAAjB,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_shared","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_androidForegroundService","_blePlxCentral","_osPermissions","_reactNativeLifecycle","_createBluetooth","_sqliteOutboxStore"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,yBAAA,GAAAb,OAAA;AAEA,IAAAc,cAAA,GAAAd,OAAA;AACA,IAAAe,cAAA,GAAAf,OAAA;AACA,IAAAgB,qBAAA,GAAAhB,OAAA;AACA,IAAAiB,gBAAA,GAAAjB,OAAA;AAEA,IAAAkB,kBAAA,GAAAlB,OAAA","ignoreList":[]}
@@ -51,6 +51,12 @@ Object.defineProperty(exports, "Discovery", {
51
51
  return _discovery.Discovery;
52
52
  }
53
53
  });
54
+ Object.defineProperty(exports, "ovokOutboxWatch", {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _ovokOutboxWatch.ovokOutboxWatch;
58
+ }
59
+ });
54
60
  Object.defineProperty(exports, "ovokReadingSink", {
55
61
  enumerable: true,
56
62
  get: function () {
@@ -99,6 +105,12 @@ Object.defineProperty(exports, "useLiveValues", {
99
105
  return _useDevice.useLiveValues;
100
106
  }
101
107
  });
108
+ Object.defineProperty(exports, "useOutbox", {
109
+ enumerable: true,
110
+ get: function () {
111
+ return _react.useOutbox;
112
+ }
113
+ });
102
114
  Object.defineProperty(exports, "usePairedDevices", {
103
115
  enumerable: true,
104
116
  get: function () {
@@ -117,6 +129,7 @@ Object.defineProperty(exports, "useWaveform", {
117
129
  return _useDevice.useWaveform;
118
130
  }
119
131
  });
132
+ var _ovokOutboxWatch = require("./adapters/ovok-outbox-watch.js");
120
133
  var _ovokReadingSink = require("./adapters/ovok-reading-sink.js");
121
134
  var _storagePairedDevices = require("./adapters/storage-paired-devices.js");
122
135
  var _bluetooth = require("./core/bluetooth.js");
@@ -129,4 +142,5 @@ var _context = require("./react/context.js");
129
142
  var _hooks = require("./react/hooks.js");
130
143
  var _useDevice = require("./react/use-device.js");
131
144
  var _useDiscovery = require("./react/use-discovery.js");
145
+ var _react = require("@ovok/core/next/react");
132
146
  //# sourceMappingURL=shared.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_ovokReadingSink","require","_storagePairedDevices","_bluetooth","_catalog","_device","_discovery","_errors","_builtIn","_context","_hooks","_useDevice","_useDiscovery"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/shared.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AAEA,IAAAM,OAAA,GAAAN,OAAA;AAwBA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAEA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,UAAA,GAAAV,OAAA;AAEA,IAAAW,aAAA,GAAAX,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_ovokOutboxWatch","require","_ovokReadingSink","_storagePairedDevices","_bluetooth","_catalog","_device","_discovery","_errors","_builtIn","_context","_hooks","_useDevice","_useDiscovery","_react"],"sourceRoot":"../../../../../src","sources":["modules/next/bluetooth/shared.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,OAAA,GAAAP,OAAA;AA0BA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAEA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AAEA,IAAAY,aAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA","ignoreList":[]}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createWebBluetooth = void 0;
7
+ var _ovokOutboxWatch = require("../adapters/ovok-outbox-watch.js");
7
8
  var _ovokReadingSink = require("../adapters/ovok-reading-sink.js");
8
9
  var _storagePairedDevices = require("../adapters/storage-paired-devices.js");
9
10
  var _webBluetoothCentral = require("../adapters/web-bluetooth-central.js");
@@ -28,6 +29,7 @@ const createWebBluetooth = ({
28
29
  central: (0, _webBluetoothCentral.webBluetoothCentral)(browserBluetooth()),
29
30
  store: (0, _storagePairedDevices.storagePairedDevices)(storage),
30
31
  sink: (0, _ovokReadingSink.ovokReadingSink)(ovok),
32
+ outbox: (0, _ovokOutboxWatch.ovokOutboxWatch)(ovok.outbox, overrides.logger),
31
33
  permissions: chooserPermissions,
32
34
  models: _builtIn.BUILT_IN_MODELS,
33
35
  protocols: _builtIn.BUILT_IN_PROTOCOLS,
@@ -1 +1 @@
1
- {"version":3,"names":["_ovokReadingSink","require","_storagePairedDevices","_webBluetoothCentral","_bluetooth","_builtIn","chooserPermissions","check","request","openSettings","undefined","browserBluetooth","globalThis","navigator","bluetooth","createWebBluetooth","ovok","storage","overrides","Bluetooth","central","webBluetoothCentral","store","storagePairedDevices","sink","ovokReadingSink","permissions","models","BUILT_IN_MODELS","protocols","BUILT_IN_PROTOCOLS","autoSync","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/create-web-bluetooth.ts"],"mappings":";;;;;;AAEA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,QAAA,GAAAJ,OAAA;AAEA;;AAUA;AACA,MAAMK,kBAAwC,GAAG;EAC/CC,KAAK,EAAE,MAAAA,CAAA,KAAY,SAAS;EAC5BC,OAAO,EAAE,MAAAA,CAAA,KAAY,SAAS;EAC9BC,YAAY,EAAE,MAAAA,CAAA,KAAYC;AAC5B,CAAC;AAED,MAAMC,gBAAgB,GAAGA,CAAA,KACtBC,UAAU,CAAkDC,SAAS,EAAEC,SAAS;;AAEnF;AACA,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,IAAI;EAAEC,OAAO;EAAE,GAAGC;AAAqC,CAAC,KACpF,IAAIC,oBAAS,CAAC;EACZC,OAAO,EAAE,IAAAC,wCAAmB,EAACV,gBAAgB,CAAC,CAAC,CAAC;EAChDW,KAAK,EAAE,IAAAC,0CAAoB,EAACN,OAAO,CAAC;EACpCO,IAAI,EAAE,IAAAC,gCAAe,EAACT,IAAI,CAAC;EAC3BU,WAAW,EAAEpB,kBAAkB;EAC/BqB,MAAM,EAAEC,wBAAe;EACvBC,SAAS,EAAEC,2BAAkB;EAC7BC,QAAQ,EAAE,KAAK;EACf,GAAGb;AACL,CAAC,CAAC;AAACc,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_ovokOutboxWatch","require","_ovokReadingSink","_storagePairedDevices","_webBluetoothCentral","_bluetooth","_builtIn","chooserPermissions","check","request","openSettings","undefined","browserBluetooth","globalThis","navigator","bluetooth","createWebBluetooth","ovok","storage","overrides","Bluetooth","central","webBluetoothCentral","store","storagePairedDevices","sink","ovokReadingSink","outbox","ovokOutboxWatch","logger","permissions","models","BUILT_IN_MODELS","protocols","BUILT_IN_PROTOCOLS","autoSync","exports"],"sourceRoot":"../../../../../../src","sources":["modules/next/bluetooth/web/create-web-bluetooth.ts"],"mappings":";;;;;;AAEA,IAAAA,gBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAAK,QAAA,GAAAL,OAAA;AAEA;;AAUA;AACA,MAAMM,kBAAwC,GAAG;EAC/CC,KAAK,EAAE,MAAAA,CAAA,KAAY,SAAS;EAC5BC,OAAO,EAAE,MAAAA,CAAA,KAAY,SAAS;EAC9BC,YAAY,EAAE,MAAAA,CAAA,KAAYC;AAC5B,CAAC;AAED,MAAMC,gBAAgB,GAAGA,CAAA,KACtBC,UAAU,CAAkDC,SAAS,EAAEC,SAAS;;AAEnF;AACA,MAAMC,kBAAkB,GAAGA,CAAC;EAAEC,IAAI;EAAEC,OAAO;EAAE,GAAGC;AAAqC,CAAC,KACpF,IAAIC,oBAAS,CAAC;EACZC,OAAO,EAAE,IAAAC,wCAAmB,EAACV,gBAAgB,CAAC,CAAC,CAAC;EAChDW,KAAK,EAAE,IAAAC,0CAAoB,EAACN,OAAO,CAAC;EACpCO,IAAI,EAAE,IAAAC,gCAAe,EAACT,IAAI,CAAC;EAC3BU,MAAM,EAAE,IAAAC,gCAAe,EAACX,IAAI,CAACU,MAAM,EAAER,SAAS,CAACU,MAAM,CAAC;EACtDC,WAAW,EAAEvB,kBAAkB;EAC/BwB,MAAM,EAAEC,wBAAe;EACvBC,SAAS,EAAEC,2BAAkB;EAC7BC,QAAQ,EAAE,KAAK;EACf,GAAGhB;AACL,CAAC,CAAC;AAACiB,OAAA,CAAApB,kBAAA,GAAAA,kBAAA","ignoreList":[]}