@ovok/native 1.6.24 → 1.6.26

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 (208) hide show
  1. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js +1 -1
  2. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  3. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +1 -1
  4. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  5. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js +7 -0
  6. package/lib/commonjs/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  7. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js +8 -3
  8. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
  9. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js +7 -1
  10. package/lib/commonjs/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  11. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +37 -0
  12. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  13. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +7 -1
  14. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  15. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js +7 -2
  16. package/lib/commonjs/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  17. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.commands.js +2 -0
  18. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.commands.js.map +1 -1
  19. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.device-names.js +13 -4
  20. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.device-names.js.map +1 -1
  21. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +77 -0
  22. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -0
  23. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
  24. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
  25. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +2 -2
  26. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
  27. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.name-match.js +3 -0
  28. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.name-match.js.map +1 -1
  29. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js +8 -0
  30. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  31. package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.frame-reader.js +71 -0
  32. package/lib/commonjs/modules/bt-management/services/devices/spo/pc60fw.frame-reader.js.map +1 -0
  33. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.device.js +31 -5
  34. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.device.js.map +1 -1
  35. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js +5 -0
  36. package/lib/commonjs/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
  37. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +24 -3
  38. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  39. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +98 -0
  40. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -0
  41. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.js +215 -55
  42. package/lib/commonjs/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.js.map +1 -1
  43. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +16 -3
  44. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
  45. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +1 -1
  46. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  47. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +8 -1
  48. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  49. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js +1 -0
  50. package/lib/commonjs/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
  51. package/lib/commonjs/modules/bt-management/types/clock-sync.js +1 -0
  52. package/lib/commonjs/modules/bt-management/types/clock-sync.js.map +1 -1
  53. package/lib/commonjs/modules/bt-management/utils/calculate-crc-8-maxim.js +24 -0
  54. package/lib/commonjs/modules/bt-management/utils/calculate-crc-8-maxim.js.map +1 -0
  55. package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +19 -27
  56. package/lib/commonjs/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
  57. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js +2 -2
  58. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  59. package/lib/module/modules/bt-device/constants/supported-devices.js +1 -1
  60. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  61. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js +7 -0
  62. package/lib/module/modules/bt-management/services/custom/compile-custom-lepu.js.map +1 -1
  63. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js +8 -3
  64. package/lib/module/modules/bt-management/services/devices/aoj/aoj.thermometers.js.map +1 -1
  65. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js +7 -1
  66. package/lib/module/modules/bt-management/services/devices/bp2/bp2.device.js.map +1 -1
  67. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +37 -0
  68. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  69. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +7 -1
  70. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  71. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js +7 -2
  72. package/lib/module/modules/bt-management/services/devices/custom/custom.device.js.map +1 -1
  73. package/lib/module/modules/bt-management/services/devices/lepu/lepu.commands.js +2 -0
  74. package/lib/module/modules/bt-management/services/devices/lepu/lepu.commands.js.map +1 -1
  75. package/lib/module/modules/bt-management/services/devices/lepu/lepu.device-names.js +13 -3
  76. package/lib/module/modules/bt-management/services/devices/lepu/lepu.device-names.js.map +1 -1
  77. package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js +73 -0
  78. package/lib/module/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.js.map +1 -0
  79. package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js +1 -1
  80. package/lib/module/modules/bt-management/services/devices/lepu/lepu.file-transfer.js.map +1 -1
  81. package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js +2 -2
  82. package/lib/module/modules/bt-management/services/devices/lepu/lepu.identity-gate.js.map +1 -1
  83. package/lib/module/modules/bt-management/services/devices/lepu/lepu.name-match.js +4 -1
  84. package/lib/module/modules/bt-management/services/devices/lepu/lepu.name-match.js.map +1 -1
  85. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js +8 -0
  86. package/lib/module/modules/bt-management/services/devices/lepu/lepu.transports.js.map +1 -1
  87. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.frame-reader.js +66 -0
  88. package/lib/module/modules/bt-management/services/devices/spo/pc60fw.frame-reader.js.map +1 -0
  89. package/lib/module/modules/bt-management/services/devices/spo/spo2.device.js +31 -5
  90. package/lib/module/modules/bt-management/services/devices/spo/spo2.device.js.map +1 -1
  91. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js +5 -0
  92. package/lib/module/modules/bt-management/services/devices/spo/spo2.main-services.js.map +1 -1
  93. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js +24 -3
  94. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-device.js.map +1 -1
  95. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js +92 -0
  96. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-record.js.map +1 -0
  97. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.js +211 -50
  98. package/lib/module/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.js.map +1 -1
  99. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js +16 -3
  100. package/lib/module/modules/bt-management/services/devices/viatom/viatom.bp-monitors.js.map +1 -1
  101. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js +1 -1
  102. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-files.js.map +1 -1
  103. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js +8 -1
  104. package/lib/module/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.js.map +1 -1
  105. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js +1 -0
  106. package/lib/module/modules/bt-management/services/devices/viatom/viatom.lepod.js.map +1 -1
  107. package/lib/module/modules/bt-management/types/clock-sync.js +1 -0
  108. package/lib/module/modules/bt-management/types/clock-sync.js.map +1 -1
  109. package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
  110. package/lib/module/modules/bt-management/utils/calculate-crc-8-maxim.js +19 -0
  111. package/lib/module/modules/bt-management/utils/calculate-crc-8-maxim.js.map +1 -0
  112. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js +19 -27
  113. package/lib/module/modules/bt-management/utils/convert-ecg-diagnostic-flag.js.map +1 -1
  114. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  117. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/aoj/aoj.thermometers.d.ts.map +1 -1
  118. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  119. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts +8 -0
  120. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  121. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  122. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  123. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.commands.d.ts +2 -0
  124. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.commands.d.ts.map +1 -1
  125. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +9 -3
  126. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts.map +1 -1
  127. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +41 -0
  128. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +2 -0
  130. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +2 -0
  132. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.name-match.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +8 -1
  135. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/pc60fw.frame-reader.d.ts +8 -0
  137. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/pc60fw.frame-reader.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/spo2.device.d.ts +5 -0
  139. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/spo2.device.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/spo/spo2.main-services.d.ts.map +1 -1
  141. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +2 -1
  142. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
  143. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +41 -0
  144. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.d.ts +50 -18
  146. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.d.ts.map +1 -1
  147. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
  148. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
  150. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/viatom/viatom.lepod.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  152. package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts +10 -0
  153. package/lib/typescript/commonjs/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts +2 -0
  155. package/lib/typescript/commonjs/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  156. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +4 -1
  157. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  158. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-8-maxim.d.ts +3 -0
  159. package/lib/typescript/commonjs/src/modules/bt-management/utils/calculate-crc-8-maxim.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  161. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  162. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  163. package/lib/typescript/module/src/modules/bt-management/services/custom/compile-custom-lepu.d.ts.map +1 -1
  164. package/lib/typescript/module/src/modules/bt-management/services/devices/aoj/aoj.thermometers.d.ts.map +1 -1
  165. package/lib/typescript/module/src/modules/bt-management/services/devices/bp2/bp2.device.d.ts.map +1 -1
  166. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts +8 -0
  167. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  168. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  169. package/lib/typescript/module/src/modules/bt-management/services/devices/custom/custom.device.d.ts.map +1 -1
  170. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.commands.d.ts +2 -0
  171. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.commands.d.ts.map +1 -1
  172. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +9 -3
  173. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts.map +1 -1
  174. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts +41 -0
  175. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.ecg-transfer.d.ts.map +1 -0
  176. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts +2 -0
  177. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.file-transfer.d.ts.map +1 -1
  178. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts +2 -0
  179. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.identity-gate.d.ts.map +1 -1
  180. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.name-match.d.ts.map +1 -1
  181. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts +8 -1
  182. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.transports.d.ts.map +1 -1
  183. package/lib/typescript/module/src/modules/bt-management/services/devices/spo/pc60fw.frame-reader.d.ts +8 -0
  184. package/lib/typescript/module/src/modules/bt-management/services/devices/spo/pc60fw.frame-reader.d.ts.map +1 -0
  185. package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.device.d.ts +5 -0
  186. package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.device.d.ts.map +1 -1
  187. package/lib/typescript/module/src/modules/bt-management/services/devices/spo/spo2.main-services.d.ts.map +1 -1
  188. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts +2 -1
  189. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-device.d.ts.map +1 -1
  190. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts +41 -0
  191. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-record.d.ts.map +1 -0
  192. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.d.ts +50 -18
  193. package/lib/typescript/module/src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.d.ts.map +1 -1
  194. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.d.ts.map +1 -1
  195. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-files.d.ts.map +1 -1
  196. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.d.ts.map +1 -1
  197. package/lib/typescript/module/src/modules/bt-management/services/devices/viatom/viatom.lepod.d.ts.map +1 -1
  198. package/lib/typescript/module/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  199. package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts +10 -0
  200. package/lib/typescript/module/src/modules/bt-management/types/command-sequencer.d.ts.map +1 -1
  201. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts +2 -0
  202. package/lib/typescript/module/src/modules/bt-management/types/custom-lepu-spec.d.ts.map +1 -1
  203. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +4 -1
  204. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  205. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-8-maxim.d.ts +3 -0
  206. package/lib/typescript/module/src/modules/bt-management/utils/calculate-crc-8-maxim.d.ts.map +1 -0
  207. package/lib/typescript/module/src/modules/bt-management/utils/convert-ecg-diagnostic-flag.d.ts.map +1 -1
  208. package/package.json +1 -1
@@ -1,35 +1,67 @@
1
- import { CommandSequencer } from "../../../types/command-sequencer";
1
+ import { ClockSyncOptions } from "../../../types/clock-sync";
2
+ import { CommandSequencer, CommandTimeoutResult } from "../../../types/command-sequencer";
2
3
  import { DeviceCommand } from "../../../types/device-command";
4
+ import { VerovalEcgHeader } from "./veroval.ecg-record";
5
+ declare const DOWNLOAD_WAIT = 0;
6
+ declare const DOWNLOAD_MODE = 1;
7
+ declare const DOWNLOAD_HEADER = 2;
8
+ declare const DOWNLOAD_RAW = 3;
9
+ declare const HEADER_PACKETS = 5;
10
+ declare const PACKETS_PER_SEGMENT = 16;
11
+ declare const SEGMENT_BYTES: number;
12
+ declare const COMMAND_TIMEOUT_MS = 3000;
13
+ declare const RAW_TIMEOUT_MS = 2000;
14
+ declare const SET_TIME_DELAY_MS = 1500;
3
15
  interface EcgTransferParams {
4
16
  /** The characteristic requests are written to. */
5
17
  write: Omit<DeviceCommand, "frame">;
6
- /** Called once, with the recording's bytes, when every segment has arrived. */
7
- onRecording: (bytes: readonly string[]) => void;
18
+ /** Called once for every valid blood-pressure header or completed ECG. */
19
+ onRecord: (record: {
20
+ header: VerovalEcgHeader;
21
+ raw?: readonly string[];
22
+ }) => void;
23
+ clockSync?: ClockSyncOptions;
8
24
  }
9
25
  /**
10
- * Downloads a recording from the Veroval ECG.
26
+ * Downloads all records from the Veroval ECG/BP monitor.
11
27
  *
12
- * The exchange is a fixed walk rather than a conversation: ask for the download mode, then
13
- * the header, then each second of the recording in turn. The device answers each request
14
- * with a known number of twenty-byte packets, sixteen payload bytes each, so the transfer is
15
- * paced by counting them. Notifications for live measurements, standby and device settings
16
- * share the characteristic, so only the download group and command advance the transfer.
17
- *
18
- * A recording is thirty-four seconds at 128 Hz. Nothing is reported until all of it has
19
- * arrived: a partial ECG that looked whole would be worse than none, and the count is what
20
- * says it is whole.
28
+ * The mode reply gives the number of records in each user memory. Headers are collected first;
29
+ * only then does the device enter raw-download mode. This matters because a blood-pressure
30
+ * record is complete in its header while an ECG needs one or more raw segments.
21
31
  */
22
- export declare class VerovalEcgTransfer implements CommandSequencer {
32
+ declare class VerovalEcgTransfer implements CommandSequencer {
23
33
  private readonly params;
24
34
  private phase;
25
- private packets;
35
+ private headerPacket;
36
+ private headerBytes;
37
+ private recordIndex;
38
+ private expectedRecords;
39
+ private headers;
40
+ private ecgHeaders;
41
+ private ecgIndex;
26
42
  private segment;
27
- private recording;
43
+ private rawPacket;
44
+ private segmentBytes;
45
+ private rawBytes;
46
+ private lastCommand;
47
+ private pendingTimeout;
48
+ private retries;
49
+ private settings;
28
50
  constructor(params: EcgTransferParams);
29
51
  initialCommands: () => readonly DeviceCommand[];
30
52
  nextCommand: (frame: readonly string[]) => readonly DeviceCommand[] | undefined;
31
- private finishSegment;
53
+ commandTimeoutMs: () => number | undefined;
54
+ onCommandTimeout: () => CommandTimeoutResult;
55
+ commandProgress: (frame: readonly string[]) => "ignored" | "partial" | "complete";
56
+ private nextSettings;
57
+ private nextMode;
58
+ private nextHeader;
59
+ private nextRaw;
60
+ private requestMode;
61
+ private requestHeader;
62
+ private requestRaw;
32
63
  private requestSegment;
64
+ private remember;
33
65
  }
34
- export {};
66
+ export { COMMAND_TIMEOUT_MS, DOWNLOAD_HEADER, DOWNLOAD_MODE, DOWNLOAD_RAW, DOWNLOAD_WAIT, HEADER_PACKETS, PACKETS_PER_SEGMENT, RAW_TIMEOUT_MS, SEGMENT_BYTES, SET_TIME_DELAY_MS, VerovalEcgTransfer, };
35
67
  //# sourceMappingURL=veroval.ecg-transfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"veroval.ecg-transfer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAiE9D,UAAU,iBAAiB;IAEzB,kDAAkD;IAClD,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAEpC,+EAA+E;IAC/E,WAAW,EAAE,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,KAAK,IAAI,CAAC;CACjD;AAID;;;;;;;;;;;;GAYG;AACH,qBAAa,kBAAmB,YAAW,gBAAgB;IAMtC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAL1C,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,SAAS,CAAgB;gBAEG,MAAM,EAAE,iBAAiB;IAEtD,eAAe,QAAO,SAAS,aAAa,EAAE,CAEnD;IAEK,WAAW,GAChB,OAAO,SAAS,MAAM,EAAE,KACvB,SAAS,aAAa,EAAE,GAAG,SAAS,CAuCrC;IAEF,OAAO,CAAC,aAAa,CAWnB;IAEF,OAAO,CAAC,cAAc,CAQpB;CACH"}
1
+ {"version":3,"file":"veroval.ecg-transfer.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/veroval/veroval.ecg-transfer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAqC,MAAM,2BAA2B,CAAC;AAChG,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAG9D,OAAO,EAAyB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAS/E,QAAA,MAAM,aAAa,IAAI,CAAC;AACxB,QAAA,MAAM,aAAa,IAAI,CAAC;AACxB,QAAA,MAAM,eAAe,IAAI,CAAC;AAC1B,QAAA,MAAM,YAAY,IAAI,CAAC;AAcvB,QAAA,MAAM,cAAc,IAAI,CAAC;AACzB,QAAA,MAAM,mBAAmB,KAAK,CAAC;AAC/B,QAAA,MAAM,aAAa,QAAsC,CAAC;AAE1D,QAAA,MAAM,kBAAkB,OAAQ,CAAC;AACjC,QAAA,MAAM,cAAc,OAAQ,CAAC;AAE7B,QAAA,MAAM,iBAAiB,OAAQ,CAAC;AA0EhC,UAAU,iBAAiB;IAEzB,kDAAkD;IAClD,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAEpC,0E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O,CAgDb;IAEF,OAAO,CAAC,WAAW,CAIf;IAEJ,OAAO,CAAC,aAAa,CASnB;IAEF,OAAO,CAAC,UAAU,CAahB;IAEF,OAAO,CAAC,cAAc,CAcpB;IAEF,OAAO,CAAC,QAAQ,CAcd;CACH;AAED,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,YAAY,EACZ,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,kBAAkB,GACnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAsFjF,UAAU,cAAc;IAEtB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAWC,CAAC;AAEL,gDAAgD;AAChD,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAgBrC,CAAC;AAEF,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,GAChB,CAAC"}
1
+ {"version":3,"file":"viatom.bp-monitors.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.bp-monitors.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,sBAAsB,EAEvB,MAAM,yCAAyC,CAAC;AA0GjD,UAAU,cAAc;IAEtB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,GACnB,gBAAgB,MAAM,EACtB,QAAQ,cAAc,KACrB,sBAYC,CAAC;AAEL,gDAAgD;AAChD,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC,kFAAkF;AAClF,QAAA,MAAM,WAAW,GAAI,QAAQ,cAAc,KAAG,sBACb,CAAC;AAElC;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAgBrC,CAAC;AAEF,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,GAChB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"viatom.ecg-files.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-files.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,yBAAyB,MAAM,CAAC;AACtC,QAAA,MAAM,+BAA+B,WAAW,CAAC;AAsBjD,0EAA0E;AAC1E,QAAA,MAAM,4BAA4B,GAAI,MAAM,MAAM,KAAG,IAAI,GAAG,SA0B3D,CAAC;AAQF,8EAA8E;AAC9E,QAAA,MAAM,wBAAwB,GAC5B,SAAS,SAAS,MAAM,EAAE,KACzB;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAyBvC,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,GAC1B,CAAC"}
1
+ {"version":3,"file":"viatom.ecg-files.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-files.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,yBAAyB,MAAM,CAAC;AACtC,QAAA,MAAM,+BAA+B,WAAW,CAAC;AAsBjD,0EAA0E;AAC1E,QAAA,MAAM,4BAA4B,GAAI,MAAM,MAAM,KAAG,IAAI,GAAG,SA0B3D,CAAC;AAQF,8EAA8E;AAC9E,QAAA,MAAM,wBAAwB,GAC5B,SAAS,SAAS,MAAM,EAAE,KACzB;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CA2BvC,CAAC;AAEF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,+BAA+B,EAC/B,yBAAyB,GAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAqDjF,UAAU,eAAe;IAEvB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AA6CD,uFAAuF;AACvF,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ,6EAA6E;AAC7E,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ,6CAA6C;AAC7C,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EASrC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAA+C,CAAC;AAEtF,uEAAuE;AACvE,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAAY,CAAC;AAEnD,OAAO,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,GACZ,CAAC"}
1
+ {"version":3,"file":"viatom.ecg-recorders.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.ecg-recorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAqDjF,UAAU,eAAe;IAEvB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAiDD,uFAAuF;AACvF,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ;;;;;GAKG;AACH,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ,6EAA6E;AAC7E,QAAA,MAAM,WAAW,GACf,gBAAgB,MAAM,EACtB,QAAQ,eAAe,KACtB,sBASA,CAAC;AAEJ,6CAA6C;AAC7C,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EASrC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAA+C,CAAC;AAKtF,uEAAuE;AACvE,QAAA,MAAM,eAAe,EAAE,SAAS,MAAM,EAAY,CAAC;AAEnD,OAAO,EACL,WAAW,EACX,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,WAAW,GACZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"viatom.lepod.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.lepod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAoGjF,UAAU,WAAW;IAEnB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY,GAChB,gBAAgB,MAAM,EACtB,QAAQ,WAAW,KAClB,sBAuBC,CAAC;AAEL,4CAA4C;AAC5C,QAAA,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAA0B,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"viatom.lepod.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/viatom/viatom.lepod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAoGjF,UAAU,WAAW;IAEnB,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,YAAY,GAChB,gBAAgB,MAAM,EACtB,QAAQ,WAAW,KAClB,sBAwBC,CAAC;AAEL,4CAA4C;AAC5C,QAAA,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAA0B,CAAC;AAEnE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"clock-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/clock-sync.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;AAE1E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAE/B,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAEjB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,KAAG,OACpC,CAAC;AAE7B,eAAO,MAAM,aAAa,GACxB,MAAM,IAAI,EACV,WAAU,iBAA2B;;;;;;;;CAoBhC,CAAC;AAER,qFAAqF;AACrF,eAAO,MAAM,4BAA4B,GACvC,YAAY,MAAM,KACjB,mBAUF,CAAC"}
1
+ {"version":3,"file":"clock-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/clock-sync.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CAAC;AAE1E,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhD,MAAM,WAAW,gBAAgB;IAE/B,2EAA2E;IAC3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IAEjB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB,GAAI,UAAU,gBAAgB,KAAG,OACpC,CAAC;AAE7B,eAAO,MAAM,aAAa,GACxB,MAAM,IAAI,EACV,WAAU,iBAA2B;;;;;;;;CAoBhC,CAAC;AAER,qFAAqF;AACrF,eAAO,MAAM,4BAA4B,GACvC,YAAY,MAAM,KACjB,mBAWF,CAAC"}
@@ -1,4 +1,8 @@
1
1
  import { DeviceCommand } from "./device-command";
2
+ export interface CommandTimeoutResult {
3
+ commands?: readonly DeviceCommand[];
4
+ terminal?: boolean;
5
+ }
2
6
  /**
3
7
  * Decides what to send a device, and when.
4
8
  *
@@ -22,6 +26,12 @@ export interface CommandSequencer {
22
26
  * on the hardware actually present.
23
27
  */
24
28
  nextCommand(frame: readonly string[]): readonly DeviceCommand[] | undefined;
29
+ /** The response timeout for the currently outstanding command, when a protocol needs one. */
30
+ commandTimeoutMs?(): number | undefined;
31
+ /** Re-sends the current command or ends the exchange after a response timeout. */
32
+ onCommandTimeout?(): CommandTimeoutResult;
33
+ /** Describes whether a frame is ignored, partial, or completes the outstanding command. */
34
+ commandProgress?(frame: readonly string[]): "ignored" | "partial" | "complete";
25
35
  /** True when a timeout-style disconnect is the device's normal completion signal. */
26
36
  isNormalDisconnect?(): boolean;
27
37
  /** True when accepted results are records downloaded from device history. */
@@ -1 +1 @@
1
- {"version":3,"file":"command-sequencer.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/command-sequencer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gBAAgB;IAE/B,6FAA6F;IAC7F,eAAe,IAAI,SAAS,aAAa,EAAE,CAAC;IAE5C;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;IAE5E,qFAAqF;IACrF,kBAAkB,CAAC,IAAI,OAAO,CAAC;IAE/B,6EAA6E;IAC7E,iBAAiB,CAAC,IAAI,OAAO,CAAC;CAC/B"}
1
+ {"version":3,"file":"command-sequencer.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/command-sequencer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gBAAgB;IAE/B,6FAA6F;IAC7F,eAAe,IAAI,SAAS,aAAa,EAAE,CAAC;IAE5C;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,aAAa,EAAE,GAAG,SAAS,CAAC;IAE5E,6FAA6F;IAC7F,gBAAgB,CAAC,IAAI,MAAM,GAAG,SAAS,CAAC;IAExC,kFAAkF;IAClF,gBAAgB,CAAC,IAAI,oBAAoB,CAAC;IAE1C,2FAA2F;IAC3F,eAAe,CAAC,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;IAE/E,qFAAqF;IACrF,kBAAkB,CAAC,IAAI,OAAO,CAAC;IAE/B,6EAA6E;IAC7E,iBAAiB,CAAC,IAAI,OAAO,CAAC;CAC/B"}
@@ -17,6 +17,8 @@ export interface CustomLepuSpec {
17
17
  protocol?: "v2" | "viatom-oxygen";
18
18
  /** Download and report each stored ECG file instead of polling a realtime frame. */
19
19
  fileTransfer?: "ecg";
20
+ /** Decoder used for stored ECG files. Omit this when the format is not verified. */
21
+ ecgFileDecoder?: "raw-int16";
20
22
  /**
21
23
  * The frame's leading byte. Most of the family uses `a5`, a smaller group `55`, and a few
22
24
  * accept either and settle on one at runtime - so it is a list.
@@ -1 +1 @@
1
- {"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,YAAY,CAAC,EAAE,KAAK,CAAC;IAErB;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,0FAA0F;IAC1F,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,2EAA2E;IAC3E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
1
+ {"version":3,"file":"custom-lepu-spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/custom-lepu-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,cAAc;IAE7B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,IAAI,GAAG,eAAe,CAAC;IAElC,oFAAoF;IACpF,YAAY,CAAC,EAAE,KAAK,CAAC;IAErB,oFAAoF;IACpF,cAAc,CAAC,EAAE,WAAW,CAAC;IAE7B;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IAErB,uFAAuF;IACvF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,0FAA0F;IAC1F,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,2EAA2E;IAC3E,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
@@ -15,6 +15,9 @@ type ActivityStepCountMeasurement = {
15
15
  start?: Date;
16
16
  end?: Date;
17
17
  };
18
+ type VerovalEcgMeasurement = EcgMeasurement & {
19
+ memorySlot?: number;
20
+ };
18
21
  interface DeviceMeasurementMap {
19
22
  [IntegratedDevices.F4]: BodyWeightMeasurement;
20
23
  [IntegratedDevices.BP2]: BloodPressureMeasurement | EcgMeasurement;
@@ -29,7 +32,7 @@ interface DeviceMeasurementMap {
29
32
  [IntegratedDevices.COSINUSS]: never;
30
33
  [IntegratedDevices.BC01]: UrineAnalyzeMeasurement;
31
34
  [IntegratedDevices.VEROVAL_DUO_CONTROL]: BloodPressureMeasurement;
32
- [IntegratedDevices.VEROVAL_ECG]: EcgMeasurement;
35
+ [IntegratedDevices.VEROVAL_ECG]: VerovalEcgMeasurement | BloodPressureMeasurement;
33
36
  [IntegratedDevices.VEROVAL_ACTIVITY]: ActivityHeartRateMeasurement | ActivityStepCountMeasurement;
34
37
  [IntegratedDevices.FORA_SCALE]: never;
35
38
  [IntegratedDevices.RPM_SCALE]: never;
@@ -1 +1 @@
1
- {"version":3,"file":"device-measurement-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-measurement-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACxB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,c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mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAClE,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;IAChD,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,EAChC,4BAA4B,GAC5B,4BAA4B,CAAC;IACjC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IACtC,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,iBAAiB,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IACtC,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAChC,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IACjC,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC;IAC9B,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,uBAAuB,CAAC;CAClD;AAED;;;GAGG;AACH,KAAK,oBAAoB,CAAC,CAAC,SAAS,SAAS,IAAI,CAAC,SAAS,iBAAiB,GACxE,oBAAoB,CAAC,CAAC,CAAC,GACvB,iBAAiB,CAAC;AAEtB,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS,SAAS,EAAE,IAClE,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"device-measurement-map.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/device-measurement-map.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB,uBAAuB,EACxB,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,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# sourceMappingURL=calculate-crc-8-maxim.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculate-crc-8-maxim.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/calculate-crc-8-maxim.ts"],"names":[],"mappings":"AAMA,uDAAuD;AACvD,eAAO,MAAM,kBAAkB,GAC7B,KAAK,SAAS,MAAM,EAAE,EACtB,WAAW,MAAM,KAChB,MAeF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"convert-ecg-diagnostic-flag.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/convert-ecg-diagnostic-flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,GACrB,iBAAiB,CA6BnB"}
1
+ {"version":3,"file":"convert-ecg-diagnostic-flag.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/utils/convert-ecg-diagnostic-flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,GACrB,iBAAiB,CA4CnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ovok/native",
3
- "version": "1.6.24",
3
+ "version": "1.6.26",
4
4
  "description": "React native component sdk for OVOK",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",