@ovok/native 1.10.10 → 1.10.12

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 (418) hide show
  1. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js +20 -1
  2. package/lib/commonjs/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  3. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +47 -0
  4. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
  5. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +119 -0
  6. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
  7. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js +6 -0
  8. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -1
  9. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +173 -0
  10. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
  11. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.js +107 -0
  12. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.js.map +1 -0
  13. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js +10 -0
  14. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
  15. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +113 -0
  16. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
  17. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +5 -37
  18. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  19. package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js +39 -0
  20. package/lib/commonjs/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
  21. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js +86 -0
  22. package/lib/commonjs/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
  23. package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js +101 -0
  24. package/lib/commonjs/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
  25. package/lib/commonjs/modules/bt-management/constants/device-variants.js +6 -1
  26. package/lib/commonjs/modules/bt-management/constants/device-variants.js.map +1 -1
  27. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js +1 -1
  28. package/lib/commonjs/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  29. package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js +5 -0
  30. package/lib/commonjs/modules/bt-management/constants/standard-device-variants.js.map +1 -1
  31. package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js +144 -0
  32. package/lib/commonjs/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
  33. package/lib/commonjs/modules/bt-management/constants/transtek-a6-device-variants.js +89 -0
  34. package/lib/commonjs/modules/bt-management/constants/transtek-a6-device-variants.js.map +1 -0
  35. package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js +93 -0
  36. package/lib/commonjs/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
  37. package/lib/commonjs/modules/bt-management/core/resolve-device-key.js +6 -0
  38. package/lib/commonjs/modules/bt-management/core/resolve-device-key.js.map +1 -1
  39. package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js +18 -0
  40. package/lib/commonjs/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
  41. package/lib/commonjs/modules/bt-management/services/device-classes.js +27 -1
  42. package/lib/commonjs/modules/bt-management/services/device-classes.js.map +1 -1
  43. package/lib/commonjs/modules/bt-management/services/device-creator.js +5 -3
  44. package/lib/commonjs/modules/bt-management/services/device-creator.js.map +1 -1
  45. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js +61 -0
  46. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
  47. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +113 -0
  48. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
  49. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +77 -0
  50. package/lib/commonjs/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
  51. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js +1 -1
  52. package/lib/commonjs/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
  53. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +7 -25
  54. package/lib/commonjs/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  55. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js +3 -2
  56. package/lib/commonjs/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  57. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js +7 -2
  58. package/lib/commonjs/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  59. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +86 -0
  60. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
  61. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +155 -0
  62. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
  63. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +33 -0
  64. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
  65. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js +87 -0
  66. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
  67. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +185 -0
  68. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
  69. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js +86 -0
  70. package/lib/commonjs/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
  71. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js +1 -1
  72. package/lib/commonjs/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
  73. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js +10 -6
  74. package/lib/commonjs/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
  75. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js +50 -0
  76. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
  77. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +127 -0
  78. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
  79. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js +181 -0
  80. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
  81. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +139 -0
  82. package/lib/commonjs/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
  83. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js +50 -0
  84. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +1 -0
  85. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.measurements.js +78 -0
  86. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.measurements.js.map +1 -0
  87. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +134 -0
  88. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -0
  89. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +102 -0
  90. package/lib/commonjs/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -0
  91. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js +51 -0
  92. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -0
  93. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.measurements.js +48 -0
  94. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.measurements.js.map +1 -0
  95. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.protocol.js +181 -0
  96. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.protocol.js.map +1 -0
  97. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +73 -0
  98. package/lib/commonjs/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -0
  99. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js +90 -0
  100. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
  101. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js +202 -0
  102. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
  103. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js +137 -0
  104. package/lib/commonjs/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
  105. package/lib/commonjs/modules/bt-management/types/clock-sync.js +2 -0
  106. package/lib/commonjs/modules/bt-management/types/clock-sync.js.map +1 -1
  107. package/lib/commonjs/modules/bt-management/types/integrated-devices.js +19 -0
  108. package/lib/commonjs/modules/bt-management/types/integrated-devices.js.map +1 -1
  109. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js +20 -1
  110. package/lib/module/modules/bt-device/constants/device-instruction-pdfs.js.map +1 -1
  111. package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js +45 -0
  112. package/lib/module/modules/bt-device/constants/supported-device-catalog-and-medical-variants.js.map +1 -0
  113. package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js +117 -0
  114. package/lib/module/modules/bt-device/constants/supported-device-catalog-cofoe-variants.js.map +1 -0
  115. package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js +6 -0
  116. package/lib/module/modules/bt-device/constants/supported-device-catalog-standard-variants.js.map +1 -1
  117. package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js +171 -0
  118. package/lib/module/modules/bt-device/constants/supported-device-catalog-taidoc-variants.js.map +1 -0
  119. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.js +105 -0
  120. package/lib/module/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.js.map +1 -0
  121. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js +10 -0
  122. package/lib/module/modules/bt-device/constants/supported-device-catalog-variants.js.map +1 -1
  123. package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js +111 -0
  124. package/lib/module/modules/bt-device/constants/supported-device-catalog-yonker-variants.js.map +1 -0
  125. package/lib/module/modules/bt-device/constants/supported-devices.js +5 -37
  126. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  127. package/lib/module/modules/bt-management/constants/and-medical-device-variants.js +37 -0
  128. package/lib/module/modules/bt-management/constants/and-medical-device-variants.js.map +1 -0
  129. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js +84 -0
  130. package/lib/module/modules/bt-management/constants/built-in-measurement-types.js.map +1 -0
  131. package/lib/module/modules/bt-management/constants/cofoe-device-variants.js +99 -0
  132. package/lib/module/modules/bt-management/constants/cofoe-device-variants.js.map +1 -0
  133. package/lib/module/modules/bt-management/constants/device-variants.js +6 -1
  134. package/lib/module/modules/bt-management/constants/device-variants.js.map +1 -1
  135. package/lib/module/modules/bt-management/constants/integrated-devices-map.js +1 -1
  136. package/lib/module/modules/bt-management/constants/integrated-devices-map.js.map +1 -1
  137. package/lib/module/modules/bt-management/constants/standard-device-variants.js +5 -0
  138. package/lib/module/modules/bt-management/constants/standard-device-variants.js.map +1 -1
  139. package/lib/module/modules/bt-management/constants/taidoc-device-variants.js +142 -0
  140. package/lib/module/modules/bt-management/constants/taidoc-device-variants.js.map +1 -0
  141. package/lib/module/modules/bt-management/constants/transtek-a6-device-variants.js +87 -0
  142. package/lib/module/modules/bt-management/constants/transtek-a6-device-variants.js.map +1 -0
  143. package/lib/module/modules/bt-management/constants/yonker-device-variants.js +91 -0
  144. package/lib/module/modules/bt-management/constants/yonker-device-variants.js.map +1 -0
  145. package/lib/module/modules/bt-management/core/resolve-device-key.js +6 -0
  146. package/lib/module/modules/bt-management/core/resolve-device-key.js.map +1 -1
  147. package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js +18 -0
  148. package/lib/module/modules/bt-management/services/background-sync/background-service-uuids.js.map +1 -1
  149. package/lib/module/modules/bt-management/services/device-classes.js +27 -1
  150. package/lib/module/modules/bt-management/services/device-classes.js.map +1 -1
  151. package/lib/module/modules/bt-management/services/device-creator.js +5 -3
  152. package/lib/module/modules/bt-management/services/device-creator.js.map +1 -1
  153. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js +57 -0
  154. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.device.js.map +1 -0
  155. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js +106 -0
  156. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.protocol.js.map +1 -0
  157. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js +74 -0
  158. package/lib/module/modules/bt-management/services/devices/and-medical/and-medical.sequencer.js.map +1 -0
  159. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js +2 -2
  160. package/lib/module/modules/bt-management/services/devices/aoj/aoj-70b.device.js.map +1 -1
  161. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js +6 -24
  162. package/lib/module/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.js.map +1 -1
  163. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js +3 -2
  164. package/lib/module/modules/bt-management/services/devices/bt-data-processor.js.map +1 -1
  165. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js +7 -2
  166. package/lib/module/modules/bt-management/services/devices/bt-managed-device.js.map +1 -1
  167. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js +82 -0
  168. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.js.map +1 -0
  169. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js +148 -0
  170. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.js.map +1 -0
  171. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js +30 -0
  172. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.js.map +1 -0
  173. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js +83 -0
  174. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.device.js.map +1 -0
  175. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js +173 -0
  176. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.protocol.js.map +1 -0
  177. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js +78 -0
  178. package/lib/module/modules/bt-management/services/devices/cofoe/cofoe.records.js.map +1 -0
  179. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js +2 -2
  180. package/lib/module/modules/bt-management/services/devices/jumper/jumper.device.js.map +1 -1
  181. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js +10 -6
  182. package/lib/module/modules/bt-management/services/devices/live-oximeter.sequencer.js.map +1 -1
  183. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js +46 -0
  184. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.device.js.map +1 -0
  185. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js +114 -0
  186. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.protocol.js.map +1 -0
  187. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js +168 -0
  188. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.records.js.map +1 -0
  189. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js +136 -0
  190. package/lib/module/modules/bt-management/services/devices/taidoc/taidoc.sequencer.js.map +1 -0
  191. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js +45 -0
  192. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.device.js.map +1 -0
  193. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.measurements.js +73 -0
  194. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.measurements.js.map +1 -0
  195. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js +121 -0
  196. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.protocol.js.map +1 -0
  197. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js +97 -0
  198. package/lib/module/modules/bt-management/services/devices/transtek/a6-scale.sequencer.js.map +1 -0
  199. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js +46 -0
  200. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.device.js.map +1 -0
  201. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.measurements.js +43 -0
  202. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.measurements.js.map +1 -0
  203. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.protocol.js +174 -0
  204. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.protocol.js.map +1 -0
  205. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js +68 -0
  206. package/lib/module/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.js.map +1 -0
  207. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js +86 -0
  208. package/lib/module/modules/bt-management/services/devices/yonker/yonker.device.js.map +1 -0
  209. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js +186 -0
  210. package/lib/module/modules/bt-management/services/devices/yonker/yonker.protocol.js.map +1 -0
  211. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js +133 -0
  212. package/lib/module/modules/bt-management/services/devices/yonker/yonker.sequencer.js.map +1 -0
  213. package/lib/module/modules/bt-management/types/clock-sync.js +2 -0
  214. package/lib/module/modules/bt-management/types/clock-sync.js.map +1 -1
  215. package/lib/module/modules/bt-management/types/device-measurement-map.js.map +1 -1
  216. package/lib/module/modules/bt-management/types/integrated-devices.js +19 -0
  217. package/lib/module/modules/bt-management/types/integrated-devices.js.map +1 -1
  218. package/lib/typescript/commonjs/src/modules/auth/hooks/use-sign-in.d.ts +1 -1
  219. package/lib/typescript/commonjs/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
  221. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
  223. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
  226. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
  227. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.d.ts +5 -0
  228. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.d.ts.map +1 -0
  229. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
  231. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/src/modules/bt-management/constants/and-medical-device-variants.d.ts +5 -0
  234. package/lib/typescript/commonjs/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
  235. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
  236. package/lib/typescript/commonjs/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
  237. package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
  238. package/lib/typescript/commonjs/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
  239. package/lib/typescript/commonjs/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
  243. package/lib/typescript/commonjs/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
  244. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-device-variants.d.ts +5 -0
  245. package/lib/typescript/commonjs/src/modules/bt-management/constants/transtek-a6-device-variants.d.ts.map +1 -0
  246. package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
  247. package/lib/typescript/commonjs/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
  248. package/lib/typescript/commonjs/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts +26 -0
  251. package/lib/typescript/commonjs/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  252. package/lib/typescript/commonjs/src/modules/bt-management/services/device-creator.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
  254. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
  255. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
  256. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
  257. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
  258. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
  259. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
  262. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
  264. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
  266. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
  268. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
  270. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
  272. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
  274. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +6 -2
  277. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
  279. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
  280. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
  281. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
  282. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
  283. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
  284. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
  285. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
  286. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +16 -0
  287. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +1 -0
  288. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.measurements.d.ts +5 -0
  289. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.measurements.d.ts.map +1 -0
  290. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +22 -0
  291. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -0
  292. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +28 -0
  293. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -0
  294. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +16 -0
  295. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -0
  296. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.measurements.d.ts +6 -0
  297. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.measurements.d.ts.map +1 -0
  298. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.protocol.d.ts +18 -0
  299. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.protocol.d.ts.map +1 -0
  300. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.d.ts +21 -0
  301. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.d.ts.map +1 -0
  302. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
  303. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
  304. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
  305. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
  306. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
  307. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
  308. package/lib/typescript/commonjs/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts +1 -0
  310. package/lib/typescript/commonjs/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts +20 -1
  312. package/lib/typescript/commonjs/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  313. package/lib/typescript/commonjs/src/modules/bt-management/types/frame-reader.d.ts +2 -1
  314. package/lib/typescript/commonjs/src/modules/bt-management/types/frame-reader.d.ts.map +1 -1
  315. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts +20 -1
  316. package/lib/typescript/commonjs/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  317. package/lib/typescript/commonjs/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
  318. package/lib/typescript/module/src/modules/auth/hooks/use-sign-in.d.ts +1 -1
  319. package/lib/typescript/module/src/modules/bt-device/constants/device-instruction-pdfs.d.ts.map +1 -1
  320. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts +5 -0
  321. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-and-medical-variants.d.ts.map +1 -0
  322. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts +5 -0
  323. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-cofoe-variants.d.ts.map +1 -0
  324. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-standard-variants.d.ts.map +1 -1
  325. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts +5 -0
  326. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-taidoc-variants.d.ts.map +1 -0
  327. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.d.ts +5 -0
  328. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-transtek-a6-variants.d.ts.map +1 -0
  329. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-variants.d.ts.map +1 -1
  330. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts +5 -0
  331. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-yonker-variants.d.ts.map +1 -0
  332. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  333. package/lib/typescript/module/src/modules/bt-management/constants/and-medical-device-variants.d.ts +5 -0
  334. package/lib/typescript/module/src/modules/bt-management/constants/and-medical-device-variants.d.ts.map +1 -0
  335. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts +9 -0
  336. package/lib/typescript/module/src/modules/bt-management/constants/built-in-measurement-types.d.ts.map +1 -0
  337. package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts +5 -0
  338. package/lib/typescript/module/src/modules/bt-management/constants/cofoe-device-variants.d.ts.map +1 -0
  339. package/lib/typescript/module/src/modules/bt-management/constants/device-variants.d.ts.map +1 -1
  340. package/lib/typescript/module/src/modules/bt-management/constants/integrated-devices-map.d.ts.map +1 -1
  341. package/lib/typescript/module/src/modules/bt-management/constants/standard-device-variants.d.ts.map +1 -1
  342. package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts +5 -0
  343. package/lib/typescript/module/src/modules/bt-management/constants/taidoc-device-variants.d.ts.map +1 -0
  344. package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-device-variants.d.ts +5 -0
  345. package/lib/typescript/module/src/modules/bt-management/constants/transtek-a6-device-variants.d.ts.map +1 -0
  346. package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts +5 -0
  347. package/lib/typescript/module/src/modules/bt-management/constants/yonker-device-variants.d.ts.map +1 -0
  348. package/lib/typescript/module/src/modules/bt-management/core/resolve-device-key.d.ts.map +1 -1
  349. package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-service-uuids.d.ts.map +1 -1
  350. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts +26 -0
  351. package/lib/typescript/module/src/modules/bt-management/services/device-classes.d.ts.map +1 -1
  352. package/lib/typescript/module/src/modules/bt-management/services/device-creator.d.ts.map +1 -1
  353. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts +18 -0
  354. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.device.d.ts.map +1 -0
  355. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts +30 -0
  356. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.protocol.d.ts.map +1 -0
  357. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts +26 -0
  358. package/lib/typescript/module/src/modules/bt-management/services/devices/and-medical/and-medical.sequencer.d.ts.map +1 -0
  359. package/lib/typescript/module/src/modules/bt-management/services/devices/blood-glucose/blood-glucose.device.d.ts.map +1 -1
  360. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-data-processor.d.ts.map +1 -1
  361. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts +4 -1
  362. package/lib/typescript/module/src/modules/bt-management/services/devices/bt-managed-device.d.ts.map +1 -1
  363. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts +32 -0
  364. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-bp.sequencer.d.ts.map +1 -0
  365. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts +46 -0
  366. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-glucose.sequencer.d.ts.map +1 -0
  367. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts +15 -0
  368. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe-thermometer.sequencer.d.ts.map +1 -0
  369. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts +18 -0
  370. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.device.d.ts.map +1 -0
  371. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts +75 -0
  372. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.protocol.d.ts.map +1 -0
  373. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts +22 -0
  374. package/lib/typescript/module/src/modules/bt-management/services/devices/cofoe/cofoe.records.d.ts.map +1 -0
  375. package/lib/typescript/module/src/modules/bt-management/services/devices/jumper/jumper.device.d.ts.map +1 -1
  376. package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts +6 -2
  377. package/lib/typescript/module/src/modules/bt-management/services/devices/live-oximeter.sequencer.d.ts.map +1 -1
  378. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts +16 -0
  379. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.device.d.ts.map +1 -0
  380. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts +50 -0
  381. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.protocol.d.ts.map +1 -0
  382. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts +40 -0
  383. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.records.d.ts.map +1 -0
  384. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts +38 -0
  385. package/lib/typescript/module/src/modules/bt-management/services/devices/taidoc/taidoc.sequencer.d.ts.map +1 -0
  386. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts +16 -0
  387. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.device.d.ts.map +1 -0
  388. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.measurements.d.ts +5 -0
  389. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.measurements.d.ts.map +1 -0
  390. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts +22 -0
  391. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.protocol.d.ts.map +1 -0
  392. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts +28 -0
  393. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/a6-scale.sequencer.d.ts.map +1 -0
  394. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts +16 -0
  395. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.device.d.ts.map +1 -0
  396. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.measurements.d.ts +6 -0
  397. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.measurements.d.ts.map +1 -0
  398. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.protocol.d.ts +18 -0
  399. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.protocol.d.ts.map +1 -0
  400. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.d.ts +21 -0
  401. package/lib/typescript/module/src/modules/bt-management/services/devices/transtek/mambo-a5.sequencer.d.ts.map +1 -0
  402. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts +21 -0
  403. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.device.d.ts.map +1 -0
  404. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts +62 -0
  405. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.protocol.d.ts.map +1 -0
  406. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts +46 -0
  407. package/lib/typescript/module/src/modules/bt-management/services/devices/yonker/yonker.sequencer.d.ts.map +1 -0
  408. package/lib/typescript/module/src/modules/bt-management/types/clock-sync.d.ts.map +1 -1
  409. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts +1 -0
  410. package/lib/typescript/module/src/modules/bt-management/types/device-data.d.ts.map +1 -1
  411. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts +20 -1
  412. package/lib/typescript/module/src/modules/bt-management/types/device-measurement-map.d.ts.map +1 -1
  413. package/lib/typescript/module/src/modules/bt-management/types/frame-reader.d.ts +2 -1
  414. package/lib/typescript/module/src/modules/bt-management/types/frame-reader.d.ts.map +1 -1
  415. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts +20 -1
  416. package/lib/typescript/module/src/modules/bt-management/types/integrated-devices.d.ts.map +1 -1
  417. package/lib/typescript/module/src/modules/data-sync/utils/get-samples-from-health.d.ts +2 -2
  418. package/package.json +1 -1
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TranstekA6ScaleDevice = void 0;
7
+ var _core = require("@ovok/core");
8
+ var _btManagedDevice = require("../bt-managed-device.js");
9
+ var _a6ScaleProtocol = require("./a6-scale.protocol.js");
10
+ var _a6ScaleSequencer = require("./a6-scale.sequencer.js");
11
+ const acceptNothing = {
12
+ caseValuePosition: [],
13
+ cases: []
14
+ };
15
+ const mainServices = [{
16
+ uuid: _a6ScaleProtocol.A6_SCALE_SERVICE,
17
+ monitorUuids: [{
18
+ uuid: _a6ScaleProtocol.A6_SCALE_NOTIFY,
19
+ parsingModel: acceptNothing
20
+ }],
21
+ writeUuid: {
22
+ uuid: _a6ScaleProtocol.A6_SCALE_WRITE,
23
+ mainCommandUuid: "0007"
24
+ }
25
+ }];
26
+
27
+ /** Transtek GBS-2012-B body scale using the A6 command protocol. */
28
+ class TranstekA6ScaleDevice extends _btManagedDevice.BTManagedDevice {
29
+ mainServices = mainServices;
30
+ stuckDataTimeout = 60_000;
31
+ onStreamStart = undefined;
32
+ getSupportedMeasurementTypeKeys() {
33
+ return [_core.MeasurementTypeKey.bodyWeight];
34
+ }
35
+ constructor(device, params) {
36
+ super(device, params);
37
+ this.frameReader = new _a6ScaleProtocol.A6ScaleFrameReader();
38
+ this.createCommandSequencer = () => new _a6ScaleSequencer.A6ScaleSequencer({
39
+ deviceId: device.id,
40
+ manufacturerData: device.manufacturerData,
41
+ clockSync: params.clockSync,
42
+ onResult: result => this.onResult?.(result)
43
+ });
44
+ }
45
+ handleSuccessResult() {
46
+ return;
47
+ }
48
+ }
49
+ exports.TranstekA6ScaleDevice = TranstekA6ScaleDevice;
50
+ //# sourceMappingURL=a6-scale.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_core","require","_btManagedDevice","_a6ScaleProtocol","_a6ScaleSequencer","acceptNothing","caseValuePosition","cases","mainServices","uuid","A6_SCALE_SERVICE","monitorUuids","A6_SCALE_NOTIFY","parsingModel","writeUuid","A6_SCALE_WRITE","mainCommandUuid","TranstekA6ScaleDevice","BTManagedDevice","stuckDataTimeout","onStreamStart","undefined","getSupportedMeasurementTypeKeys","MeasurementTypeKey","bodyWeight","constructor","device","params","frameReader","A6ScaleFrameReader","createCommandSequencer","A6ScaleSequencer","deviceId","id","manufacturerData","clockSync","onResult","result","handleSuccessResult","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,gBAAA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Weight = void 0;
7
+ var _a6ScaleProtocol = require("./a6-scale.protocol.js");
8
+ const hexBytes = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0"));
9
+ const parseA6Weight = body => {
10
+ if (body.length < 8) {
11
+ return undefined;
12
+ }
13
+ const encoded = hexBytes(body);
14
+ const flags = (0, _a6ScaleProtocol.readA6Uint)(encoded, 2, 4);
15
+ const unit = flags & 0x03;
16
+ const bodyWeight = (0, _a6ScaleProtocol.readA6Uint)(encoded, 6, 2) / 100;
17
+ let offset = 8;
18
+ let utcSeconds;
19
+ let recordedAt;
20
+ if ((flags & 0x04) !== 0) {
21
+ offset += 1;
22
+ }
23
+ if ((flags & 0x08) !== 0) {
24
+ if (body.length < offset + 4) {
25
+ return undefined;
26
+ }
27
+ utcSeconds = (0, _a6ScaleProtocol.readA6Uint)(encoded, offset, 4);
28
+ offset += 4;
29
+ }
30
+ if ((flags & 0x10) !== 0) {
31
+ offset += 1;
32
+ }
33
+ if ((flags & 0x20) !== 0) {
34
+ if (body.length < offset + 7) {
35
+ return undefined;
36
+ }
37
+ const year = 2000 + (0, _a6ScaleProtocol.readA6Uint)(encoded, offset, 2);
38
+ const month = body[offset + 2] ?? 0;
39
+ const day = body[offset + 3] ?? 0;
40
+ const hour = body[offset + 4] ?? 0;
41
+ const minute = body[offset + 5] ?? 0;
42
+ const second = body[offset + 6] ?? 0;
43
+ const date = new Date(0);
44
+ date.setFullYear(year, month - 1, day);
45
+ date.setHours(hour, minute, second, 0);
46
+ offset += 7;
47
+ if (date.getFullYear() === year && date.getMonth() === month - 1 && date.getDate() === day && date.getHours() === hour && date.getMinutes() === minute && date.getSeconds() === second) {
48
+ recordedAt = date;
49
+ }
50
+ }
51
+ if ((flags & 0x4000) !== 0) {
52
+ offset += 2;
53
+ }
54
+ if ((flags & 0x10000) !== 0) {
55
+ offset += 1;
56
+ }
57
+ if ((flags & 0x20000) !== 0) {
58
+ offset += 2;
59
+ }
60
+ const knownFlags = 0x3c03f;
61
+ if (body.length < offset || (flags & ~knownFlags) !== 0 || unit !== 0 || bodyWeight <= 0 || bodyWeight > 500) {
62
+ return undefined;
63
+ }
64
+ if (!recordedAt && utcSeconds !== undefined && utcSeconds > 0) {
65
+ const date = new Date(utcSeconds * 1000);
66
+ if (!Number.isNaN(date.getTime())) {
67
+ recordedAt = date;
68
+ }
69
+ }
70
+ return {
71
+ bodyWeight,
72
+ ...(recordedAt ? {
73
+ recordedAt
74
+ } : {})
75
+ };
76
+ };
77
+ exports.parseA6Weight = parseA6Weight;
78
+ //# sourceMappingURL=a6-scale.measurements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_a6ScaleProtocol","require","hexBytes","bytes","map","value","toString","padStart","parseA6Weight","body","length","undefined","encoded","flags","readA6Uint","unit","bodyWeight","offset","utcSeconds","recordedAt","year","month","day","hour","minute","second","date","Date","setFullYear","setHours","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","knownFlags","Number","isNaN","getTime","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.measurements.ts"],"mappings":";;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,MAAMC,QAAQ,GAAIC,KAAwB,IACxCA,KAAK,CAACC,GAAG,CAAEC,KAAK,IAAK,CAACA,KAAK,GAAG,IAAI,EAAEC,QAAQ,CAAC,EAAE,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAE7D,MAAMC,aAAa,GACxBC,IAAuB,IACmC;EAC1D,IAAIA,IAAI,CAACC,MAAM,GAAG,CAAC,EAAE;IACnB,OAAOC,SAAS;EAClB;EAEA,MAAMC,OAAO,GAAGV,QAAQ,CAACO,IAAI,CAAC;EAC9B,MAAMI,KAAK,GAAG,IAAAC,2BAAU,EAACF,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;EACvC,MAAMG,IAAI,GAAGF,KAAK,GAAG,IAAI;EACzB,MAAMG,UAAU,GAAG,IAAAF,2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AAK,CAACZ,IAAI,CAACa,OAAO,CAAC,CAAC,CAAC,EAAE;MACjCpB,UAAU,GAAGO,IAAI;IACnB;EACF;EAEA,OAAO;IAAEV,UAAU;IAAE,IAAIG,UAAU,GAAG;MAAEA;IAAW,CAAC,GAAG,CAAC,CAAC;EAAE,CAAC;AAC9D,CAAC;AAACqB,OAAA,CAAAhC,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.readA6Uint = exports.encryptA6Body = exports.encodeA6Command = exports.decryptA6Body = exports.decodeA6Command = exports.a6EncryptionKey = exports.a6CommandBody = exports.A6_SCALE_WRITE = exports.A6_SCALE_WEIGHT = exports.A6_SCALE_SERVICE = exports.A6_SCALE_NOTIFY = exports.A6_SCALE_ACK = exports.A6ScaleFrameReader = void 0;
7
+ var _cryptoJs = _interopRequireDefault(require("crypto-js"));
8
+ var _frameReadStatus = require("../../../types/frame-read-status.js");
9
+ var _base64ToHex = require("../../../utils/base-64-to-hex.js");
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ /* eslint-disable import/group-exports */
12
+
13
+ const A6_SCALE_SERVICE = exports.A6_SCALE_SERVICE = "0000a602-0000-1000-8000-00805f9b34fb";
14
+ const A6_SCALE_NOTIFY = exports.A6_SCALE_NOTIFY = "0000a621-0000-1000-8000-00805f9b34fb";
15
+ const A6_SCALE_WRITE = exports.A6_SCALE_WRITE = "0000a624-0000-1000-8000-00805f9b34fb";
16
+ const A6_SCALE_ACK = exports.A6_SCALE_ACK = "0000a622-0000-1000-8000-00805f9b34fb";
17
+ const A6_SCALE_WEIGHT = exports.A6_SCALE_WEIGHT = 0x4802;
18
+ const byte = value => Number.parseInt(value ?? "00", 16) || 0;
19
+ const readA6Uint = (bytes, offset, length) => bytes.slice(offset, offset + length).reduce((value, current) => value * 256 + byte(current), 0);
20
+ exports.readA6Uint = readA6Uint;
21
+ const bytesToHex = bytes => bytes.map(value => (value & 0xff).toString(16).padStart(2, "0")).join("");
22
+ const hexToBytes = hex => hex.match(/.{2}/g)?.map(value => Number.parseInt(value, 16)) ?? [];
23
+ const a6EncryptionKey = (deviceId, manufacturerData) => {
24
+ const mac = deviceId.replace(/[:-]/g, "").toLowerCase();
25
+ const manufacturer = manufacturerData ? (0, _base64ToHex.base64ToHex)(manufacturerData).join("").toLowerCase() : "";
26
+ if (!/^[\da-f]{12}$/.test(mac) || !manufacturer.startsWith("ae12")) {
27
+ return undefined;
28
+ }
29
+ const prefix = Array.from("TranstekA6", character => character.charCodeAt(0).toString(16).padStart(2, "0")).join("");
30
+ return `${prefix}${mac}`;
31
+ };
32
+ exports.a6EncryptionKey = a6EncryptionKey;
33
+ const encryptA6Body = (body, key) => {
34
+ if (!key) {
35
+ return [...body];
36
+ }
37
+ if (body.length > 16) {
38
+ return undefined;
39
+ }
40
+ const padded = [...body, ...Array(16 - body.length).fill(0)];
41
+ const encrypted = _cryptoJs.default.AES.encrypt(_cryptoJs.default.enc.Hex.parse(bytesToHex(padded)), _cryptoJs.default.enc.Hex.parse(key), {
42
+ mode: _cryptoJs.default.mode.ECB,
43
+ padding: _cryptoJs.default.pad.NoPadding
44
+ });
45
+ return hexToBytes(_cryptoJs.default.enc.Hex.stringify(encrypted.ciphertext));
46
+ };
47
+ exports.encryptA6Body = encryptA6Body;
48
+ const decryptA6Body = (body, key) => {
49
+ if (!key) {
50
+ return body.map(byte);
51
+ }
52
+ if (body.length !== 16) {
53
+ return undefined;
54
+ }
55
+ const ciphertext = _cryptoJs.default.lib.CipherParams.create({
56
+ ciphertext: _cryptoJs.default.enc.Hex.parse(body.join(""))
57
+ });
58
+ const decrypted = _cryptoJs.default.AES.decrypt(ciphertext, _cryptoJs.default.enc.Hex.parse(key), {
59
+ mode: _cryptoJs.default.mode.ECB,
60
+ padding: _cryptoJs.default.pad.NoPadding
61
+ });
62
+ return hexToBytes(_cryptoJs.default.enc.Hex.stringify(decrypted));
63
+ };
64
+ exports.decryptA6Body = decryptA6Body;
65
+ const encodeA6Command = (command, body, key) => {
66
+ const encodedBody = encryptA6Body(body, key);
67
+ if (!encodedBody) {
68
+ return undefined;
69
+ }
70
+ const content = [command >> 8, command & 0xff, ...encodedBody];
71
+ if (content.length > 18) {
72
+ return undefined;
73
+ }
74
+ return ["10", content.length.toString(16).padStart(2, "0"), ...content.map(value => (value & 0xff).toString(16).padStart(2, "0"))];
75
+ };
76
+
77
+ /** Extracts each length-prefixed A6 notification frame; command fragments are joined by its sequencer. */
78
+ exports.encodeA6Command = encodeA6Command;
79
+ class A6ScaleFrameReader {
80
+ readFrame(buffer) {
81
+ if (buffer.length < 2) {
82
+ return {
83
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
84
+ consumedBytes: 0
85
+ };
86
+ }
87
+ const control = byte(buffer[0]);
88
+ const frameCount = control >> 4;
89
+ const frameIndex = control & 0x0f;
90
+ const contentLength = byte(buffer[1]);
91
+ if (frameCount === 0 && contentLength === 1 && buffer.length < 3) {
92
+ return {
93
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
94
+ consumedBytes: 0
95
+ };
96
+ }
97
+ if (frameCount === 0 && (contentLength !== 1 || buffer.length < 3 || byte(buffer[2]) !== 1) || frameCount !== 0 && (frameIndex >= frameCount || contentLength === 0 || contentLength > 18)) {
98
+ return {
99
+ status: _frameReadStatus.FrameReadStatus.CORRUPT,
100
+ consumedBytes: 1
101
+ };
102
+ }
103
+ if (buffer.length < contentLength + 2) {
104
+ return {
105
+ status: _frameReadStatus.FrameReadStatus.INCOMPLETE,
106
+ consumedBytes: 0
107
+ };
108
+ }
109
+ return {
110
+ status: _frameReadStatus.FrameReadStatus.COMPLETE,
111
+ consumedBytes: contentLength + 2,
112
+ frame: buffer.slice(0, contentLength + 2)
113
+ };
114
+ }
115
+ }
116
+ exports.A6ScaleFrameReader = A6ScaleFrameReader;
117
+ const decodeA6Command = (content, key) => {
118
+ if (content.length < 2) {
119
+ return undefined;
120
+ }
121
+ const command = readA6Uint(content, 0, 2);
122
+ const body = decryptA6Body(content.slice(2), key);
123
+ return body ? {
124
+ command,
125
+ body
126
+ } : undefined;
127
+ };
128
+ exports.decodeA6Command = decodeA6Command;
129
+ const a6CommandBody = frame => {
130
+ const contentLength = byte(frame[1]);
131
+ return frame.slice(2, 2 + contentLength);
132
+ };
133
+ exports.a6CommandBody = a6CommandBody;
134
+ //# sourceMappingURL=a6-scale.protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_cryptoJs","_interopRequireDefault","require","_frameReadStatus","_base64ToHex","e","__esModule","default","A6_SCALE_SERVICE","exports","A6_SCALE_NOTIFY","A6_SCALE_WRITE","A6_SCALE_ACK","A6_SCALE_WEIGHT","byte","value","Number","parseInt","readA6Uint","bytes","offset","length","slice","reduce","current","bytesToHex","map","toString","padStart","join","hexToBytes","hex","match","a6EncryptionKey","deviceId","manufacturerData","mac","replace","toLowerCase","manufacturer","base64ToHex","test","startsWith","undefined","prefix","Array","from","character","charCodeAt","encryptA6Body","body","key","padded","fill","encrypted","CryptoJS","AES","encrypt","enc","Hex","parse","mode","ECB","padding","pad","NoPadding","stringify","ciphertext","decryptA6Body","lib","CipherParams","create","decrypted","decrypt","encodeA6Command","command","encodedBody","content","A6ScaleFrameReader","readFrame","buffer","status","FrameReadStatus","INCOMPLETE","consumedBytes","control","frameCount","frameIndex","contentLength","CORRUPT","COMPLETE","frame","decodeA6Command","a6CommandBody"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.protocol.ts"],"mappings":";;;;;;AAEA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAA4D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;A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GAAAA,eAAA;AAEK,MAAMC,aAAa,GAAIF,KAAwB,IAAe;EACnE,MAAMH,aAAa,GAAG1E,IAAI,CAAC6E,KAAK,CAAC,CAAC,CAAC,CAAC;EAEpC,OAAOA,KAAK,CAACrE,KAAK,CAAC,CAAC,EAAE,CAAC,GAAGkE,aAAa,CAAC;AAC1C,CAAC;AAAC/E,OAAA,CAAAoF,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.A6ScaleSequencer = void 0;
7
+ var _core = require("@ovok/core");
8
+ var _caseType = require("../../../types/case-type.js");
9
+ var _a6ScaleMeasurements = require("./a6-scale.measurements.js");
10
+ var _a6ScaleProtocol = require("./a6-scale.protocol.js");
11
+ const command = (characteristicUuid, frame, delayBeforeWriteMs) => ({
12
+ serviceUuid: _a6ScaleProtocol.A6_SCALE_SERVICE,
13
+ characteristicUuid,
14
+ frame,
15
+ ...(delayBeforeWriteMs ? {
16
+ delayBeforeWriteMs
17
+ } : {})
18
+ });
19
+
20
+ /** Answers A6 authentication/init requests and decodes the scale's weight records. */
21
+ class A6ScaleSequencer {
22
+ expectedFragmentCount = 0;
23
+ userNumber = 0;
24
+ constructor(options) {
25
+ this.options = options;
26
+ this.key = (0, _a6ScaleProtocol.a6EncryptionKey)(options.deviceId, options.manufacturerData);
27
+ }
28
+ initialCommands = () => [];
29
+ isHistoryTransfer = () => true;
30
+ nextCommand = frame => {
31
+ const content = (0, _a6ScaleProtocol.a6CommandBody)(frame);
32
+ const control = Number.parseInt(frame[0] ?? "00", 16) || 0;
33
+ const count = control >> 4;
34
+ const index = control & 0x0f;
35
+ const replies = [];
36
+ if (count === 0) {
37
+ return replies;
38
+ }
39
+ if (!(count === 1 && content.length === 1 && content[0] === "01")) {
40
+ replies.push(command(_a6ScaleProtocol.A6_SCALE_ACK, ["00", "01", "01"]));
41
+ }
42
+ if (count === 1) {
43
+ replies.push(...this.processMessage(content));
44
+ return replies;
45
+ }
46
+ if (index === 0) {
47
+ this.fragments = Array.from({
48
+ length: count
49
+ }, () => []);
50
+ this.expectedFragmentCount = count;
51
+ }
52
+ if (!this.fragments || this.expectedFragmentCount !== count) {
53
+ this.fragments = undefined;
54
+ this.expectedFragmentCount = 0;
55
+ return replies;
56
+ }
57
+ this.fragments[index] = content;
58
+ if (this.fragments.some(part => part.length === 0)) {
59
+ return replies;
60
+ }
61
+ const assembled = this.fragments.flat();
62
+ this.fragments = undefined;
63
+ this.expectedFragmentCount = 0;
64
+ replies.push(...this.processMessage(assembled));
65
+ return replies;
66
+ };
67
+ processMessage = content => {
68
+ const message = (0, _a6ScaleProtocol.decodeA6Command)(content, this.key);
69
+ if (!message) {
70
+ return [];
71
+ }
72
+ if (message.command === 0x0007) {
73
+ if (message.body.length < 8) {
74
+ return [];
75
+ }
76
+ this.userNumber = message.body[6] ?? 0;
77
+ const response = (0, _a6ScaleProtocol.encodeA6Command)(0x0008, [0x01, ...message.body.slice(0, 6), 0x00, 0x02], this.key);
78
+ return response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : [];
79
+ }
80
+ if (message.command === 0x0009) {
81
+ const now = this.options.clockSync?.now?.() ?? new Date();
82
+ const seconds = Math.floor(now.getTime() / 1000);
83
+ const timezone = this.options.clockSync?.timezone === "utc" ? 48 : 48 - Math.round(now.getTimezoneOffset() / 15);
84
+ const response = (0, _a6ScaleProtocol.encodeA6Command)(0x000a, [0x18, seconds >>> 24 & 0xff, seconds >>> 16 & 0xff, seconds >>> 8 & 0xff, seconds & 0xff, timezone], this.key);
85
+ const sync = (0, _a6ScaleProtocol.encodeA6Command)(0x4801, [this.userNumber, 1], this.key);
86
+ return [...(response ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, response)] : []), ...(sync ? [command(_a6ScaleProtocol.A6_SCALE_WRITE, sync, 500)] : [])];
87
+ }
88
+ if (message.command === _a6ScaleProtocol.A6_SCALE_WEIGHT) {
89
+ const weight = (0, _a6ScaleMeasurements.parseA6Weight)(message.body);
90
+ if (weight) {
91
+ this.options.onResult({
92
+ caseType: _caseType.CaseType.RESULT,
93
+ measurementTypeKey: _core.MeasurementTypeKey.bodyWeight,
94
+ ...weight
95
+ });
96
+ }
97
+ }
98
+ return [];
99
+ };
100
+ }
101
+ exports.A6ScaleSequencer = A6ScaleSequencer;
102
+ //# sourceMappingURL=a6-scale.sequencer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_core","require","_caseType","_a6ScaleMeasurements","_a6ScaleProtocol","command","characteristicUuid","frame","delayBeforeWriteMs","serviceUuid","A6_SCALE_SERVICE","A6ScaleSequencer","expectedFragmentCount","userNumber","constructor","options","key","a6EncryptionKey","deviceId","manufacturerData","initialCommands","isHistoryTransfer","nextCommand","content","a6CommandBody","control","Number","parseInt","count","index","replies","length","push","A6_SCALE_ACK","processMessage","fragments","Array","from","undefined","some","part","assembled","flat","message","decodeA6Command","body","response","encodeA6Command","slice","A6_SCALE_WRITE","now","clockSync","Date","seconds","Math","floor","getTime","timezone","round","getTimezoneOffset","sync","A6_SCALE_WEIGHT","weight","parseA6Weight","onResult","caseType","CaseType","RESULT","measurementTypeKey","MeasurementTypeKey","bodyWeight","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/a6-scale.sequencer.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AAQA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAsBA,MAAMI,OAAO,GAAGA,CACdC,kBAA0B,EAC1BC,KAAwB,EACxBC,kBAA2B,MACR;EACnBC,WAAW,EAAEC,iCAAgB;EAC7BJ,kBAAkB;EAClBC,KAAK;EACL,IAAIC,kBAAkB,GAAG;IAAEA;EAAmB,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC,CAAC;;AAEF;AACO,MAAMG,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,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CACtD;IACH;IAEA,IAAIjB,OAAO,CAACtC,OAAO,KAAKwD,gCAAe,EAAE;MACvC,MAAMC,MAAM,GAAG,IAAAC,kCAAa,EAACpB,OAAO,CAACE,IAAI,CAAC;MAE1C,IAAIiB,MAAM,EAAE;QACV,IAAI,CAAC/C,OAAO,CAACiD,QAAQ,CAAC;UACpBC,QAAQ,EAAEC,kBAAQ,CAACC,MAAM;UACzBC,kBAAkB,EAAEC,wBAAkB,CAACC,UAAU;UACjD,GAAGR;QACL,CAAa,CAAC;MAChB;IACF;IAEA,OAAO,EAAE;EACX,CAAC;AACH;AAACS,OAAA,CAAA5D,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MamboA5Device = void 0;
7
+ var _core = require("@ovok/core");
8
+ var _btManagedDevice = require("../bt-managed-device.js");
9
+ var _mamboA5Protocol = require("./mambo-a5.protocol.js");
10
+ var _mamboA5Sequencer = require("./mambo-a5.sequencer.js");
11
+ const acceptNothing = {
12
+ caseValuePosition: [],
13
+ cases: []
14
+ };
15
+ const mainServices = [{
16
+ uuid: _mamboA5Protocol.MAMBO_A5_SERVICE,
17
+ monitorUuids: [{
18
+ uuid: _mamboA5Protocol.MAMBO_A5_LOGIN,
19
+ parsingModel: acceptNothing
20
+ }, {
21
+ uuid: _mamboA5Protocol.MAMBO_A5_NOTIFY,
22
+ parsingModel: acceptNothing
23
+ }],
24
+ writeUuid: {
25
+ uuid: _mamboA5Protocol.MAMBO_A5_WRITE,
26
+ mainCommandUuid: "8000"
27
+ }
28
+ }];
29
+
30
+ /** Mambo A5 tracker exposing the vendor A5 activity-data protocol. */
31
+ class MamboA5Device extends _btManagedDevice.BTManagedDevice {
32
+ mainServices = mainServices;
33
+ stuckDataTimeout = 60_000;
34
+ onStreamStart = undefined;
35
+ getSupportedMeasurementTypeKeys() {
36
+ return [_core.MeasurementTypeKey.bloodOxygenPulseRate];
37
+ }
38
+ constructor(device, params) {
39
+ super(device, params);
40
+ this.frameReader = new _mamboA5Protocol.MamboA5FrameReader();
41
+ this.createCommandSequencer = () => new _mamboA5Sequencer.MamboA5Sequencer({
42
+ clockSync: params.clockSync,
43
+ onResult: result => this.onResult?.(result)
44
+ });
45
+ }
46
+ handleSuccessResult() {
47
+ return;
48
+ }
49
+ }
50
+ exports.MamboA5Device = MamboA5Device;
51
+ //# sourceMappingURL=mambo-a5.device.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_core","require","_btManagedDevice","_mamboA5Protocol","_mamboA5Sequencer","acceptNothing","caseValuePosition","cases","mainServices","uuid","MAMBO_A5_SERVICE","monitorUuids","MAMBO_A5_LOGIN","parsingModel","MAMBO_A5_NOTIFY","writeUuid","MAMBO_A5_WRITE","mainCommandUuid","MamboA5Device","BTManagedDevice","stuckDataTimeout","onStreamStart","undefined","getSupportedMeasurementTypeKeys","MeasurementTypeKey","bloodOxygenPulseRate","constructor","device","params","frameReader","MamboA5FrameReader","createCommandSequencer","MamboA5Sequencer","clockSync","onResult","result","handleSuccessResult","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/mambo-a5.device.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,gBAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAOA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,MAAMI,aAAa,GAAG;EAAEC,iBAAiB,EAAE,EAAE;EAAEC,KAAK,EAAE;AAAG,CAAC;AAE1D,MAAMC,YAAwB,GAAG,CAC/B;EACEC,IAAI,EAAEC,iCAAgB;EACtBC,YAAY,EAAE,CACZ;IAAEF,IAAI,EAAEG,+BAAc;IAAEC,YAAY,EAAER;EAAc,CAAC,EACrD;IAAEI,IAAI,EAAEK,gCAAe;IAAED,YAAY,EAAER;EAAc,CAAC,CACvD;EACDU,SAAS,EAAE;IAAEN,IAAI,EAAEO,+BAAc;IAAEC,eAAe,EAAE;EAAO;AAC7D,CAAC,CACF;;AAED;AACO,MAAMC,aAAa,SAASC,gCAAe,CAA6B;EACnEX,YAAY,GAAGA,YAAY;EAC3BY,gBAAgB,GAAG,MAAM;EACzBC,aAAa,GAAGC,SAAS;EAEhBC,+BAA+BA,CAAA,EAAyB;IACzE,OAAO,CAACC,wBAAkB,CAACC,oBAAoB,CAAC;EAClD;EAEOC,WAAWA,CAChBC,MAAc,EACdC,MAAsD,EACtD;IACA,KAAK,CAACD,MAAM,EAAEC,MAAM,CAAC;IACrB,IAAI,CAACC,WAAW,GAAG,IAAIC,mCAAkB,CAAC,CAAC;IAC3C,IAAI,CAACC,sBAAsB,GAAG,MAC5B,IAAIC,kCAAgB,CAAC;MACnBC,SAAS,EAAEL,MAAM,CAACK,SAAS;MAC3BC,QAAQ,EAAGC,MAAM,IACf,IAAI,CAACD,QAAQ,GACXC,MAGF;IACJ,CAAC,CAAC;EACN;EAEUC,mBAAmBA,CAAA,EAAS;IACpC;EACF;AACF;AAACC,OAAA,CAAAnB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.parseMamboA5Oxygen = void 0;
7
+ const parseMamboA5Oxygen = payload => {
8
+ const command = payload[0];
9
+ let offset;
10
+ let baseTimestamp;
11
+ let intervalSeconds = 0;
12
+ let recordBytes;
13
+ if (command === 0x83) {
14
+ offset = 7;
15
+ recordBytes = 6;
16
+ } else if (command === 0x8e) {
17
+ offset = 10;
18
+ recordBytes = 3;
19
+ baseTimestamp = payload.slice(5, 9).reduce((value, current) => value * 256 + current, 0);
20
+ intervalSeconds = (payload[9] ?? 0) * 300;
21
+ } else {
22
+ return [];
23
+ }
24
+ if (payload.length < offset || (payload.length - offset) % recordBytes !== 0) {
25
+ return [];
26
+ }
27
+ const records = [];
28
+ let index = 0;
29
+ while (offset < payload.length) {
30
+ const timestamp = command === 0x83 ? payload.slice(offset, offset + 4).reduce((value, current) => value * 256 + current, 0) : (baseTimestamp ?? 0) + index * intervalSeconds;
31
+ const valueOffset = command === 0x83 ? offset + 4 : offset + 1;
32
+ const bloodOxygen = payload[valueOffset] ?? 0;
33
+ const pulseRate = payload[valueOffset + 1] ?? 0;
34
+ const recordedAt = new Date(timestamp * 1000);
35
+ if (bloodOxygen >= 50 && bloodOxygen <= 100 && pulseRate >= 20 && pulseRate <= 300 && timestamp > 0 && !Number.isNaN(recordedAt.getTime())) {
36
+ records.push({
37
+ bloodOxygen,
38
+ pulseRate,
39
+ recordedAt
40
+ });
41
+ }
42
+ offset += recordBytes;
43
+ index += 1;
44
+ }
45
+ return records;
46
+ };
47
+ exports.parseMamboA5Oxygen = parseMamboA5Oxygen;
48
+ //# sourceMappingURL=mambo-a5.measurements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["parseMamboA5Oxygen","payload","command","offset","baseTimestamp","intervalSeconds","recordBytes","slice","reduce","value","current","length","records","index","timestamp","valueOffset","bloodOxygen","pulseRate","recordedAt","Date","Number","isNaN","getTime","push","exports"],"sourceRoot":"../../../../../../../src","sources":["modules/bt-management/services/devices/transtek/mambo-a5.measurements.ts"],"mappings":";;;;;;AAAO,MAAMA,kBAAkB,GAC7BC,OAA0B,IAC8C;EACxE,MAAMC,OAAO,GAAGD,OAAO,CAAC,CAAC,CAAC;EAC1B,IAAIE,MAAc;EAClB,IAAIC,aAAiC;EACrC,IAAIC,eAAe,GAAG,CAAC;EACvB,IAAIC,WAAmB;EAEvB,IAAIJ,OAAO,KAAK,IAAI,EAAE;IACpBC,MAAM,GAAG,CAAC;IACVG,WAAW,GAAG,CAAC;EACjB,CAAC,MAAM,IAAIJ,OAAO,KAAK,IAAI,EAAE;IAC3BC,MAAM,GAAG,EAAE;IACXG,WAAW,GAAG,CAAC;IACfF,a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